[Scummvm-tracker] [ScummVM :: Bugs] #11768: GRIM: Framebuffer is not complete! status: 36054!

ScummVM :: Bugs trac at scummvm.org
Mon Oct 12 16:47:46 UTC 2020


#11768: GRIM: Framebuffer is not complete! status: 36054!
----------------------+----------------------
  Reporter:  lmerckx  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  normal   |  Component:  Graphics
Resolution:           |   Keywords:
      Game:           |
----------------------+----------------------
Description changed by lmerckx:

Old description:

> For GRIM engine, this error occurs with OpenGL and OpenGLES in fullscreen
> mode (tested on x64 and Raspberry PI2 and 3).
>
> After some debugging, I came to the conclusion that
> **OpenGLSdlGraphics3dManager::createOrUpdateScreen()** is called before
> the **initSize** method.
> So, variables **_engineRequestedWidth** and **_engineRequestedHeight**
> are still 0; which leads to the creation of a 0x0 frame buffer.
>
> And causes the error.
>
> A simple test like this at the beginning of **createOrUpdateScreen()**
> works but it is perhaps not the good solution:
>
> {{{
> if ((_engineRequestedWidth == 0) || (_engineRequestedHeight == 0))
>   return;
> }}}

New description:

 For GRIM engine, this error occurs with OpenGL and OpenGLES in fullscreen
 mode (tested on x64 and Raspberry PI2 and 3).

 After some debugging, I came to the conclusion that
 **OpenGLSdlGraphics3dManager::createOrUpdateScreen()** is called before
 the **initSize** method.
 So, variables **_engineRequestedWidth** and **_engineRequestedHeight** are
 still 0; which leads to the creation of a 0x0 frame buffer.
 And causes the error and a black screen at startup.

 A simple test like this at the beginning of **createOrUpdateScreen()**
 works but it is perhaps not the good solution:

 {{{
 if ((_engineRequestedWidth == 0) || (_engineRequestedHeight == 0))
   return;
 }}}

--
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/11768#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list