Opened 4 years ago

Last modified 4 years ago

#11768 closed defect

GRIM: Framebuffer is not complete! status: 36054! — at Version 1

Reported by: lmerckx Owned by:
Priority: high Component: Graphics
Version: Keywords:
Cc: Game: Grim Fandango

Description (last modified by lmerckx)

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;

Change History (1)

comment:1 by lmerckx, 4 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.