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.
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 GLSurfaceTextur e::init( uint32_ t w, uint32_t h)
{
handle_glerror();
assert(w);
assert(h); // <<<< ASSERT FAILURE. h = 0.