Comment 3 for bug 1095695

Revision history for this message
Mark Scott (mxsscott) wrote :

Clarification - only affects OpenGL rendering:

Surface* Graphic::create_surface(int32_t w, int32_t h, bool alpha) const
{
#ifdef USE_OPENGL
 if (g_opengl)
 {
  return new GLSurfaceTexture(w, h, alpha);
 }
       else
#endif

.
.
.

void GLSurfaceTexture::init(uint32_t w, uint32_t h)
{
 handle_glerror();
 assert(w);
 assert(h); // <<<< ASSERT FAILURE. h = 0.