Skip to content

Commit

Permalink
Debug|libgui|GLTarget: Converted a GL assert to a debug message
Browse files Browse the repository at this point in the history
On Windows, this assert may fail during canvas recreation.

Todo: In the long run, make canvas recreation unnecessary. Hopefully
Qt 5.4 will help here.
  • Loading branch information
skyjake committed Nov 17, 2014
1 parent 71ddc7d commit 2ec76b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doomsday/libgui/src/graphics/gltarget.cpp
Expand Up @@ -515,7 +515,12 @@ void GLTarget::glBind() const
}
else
{
DENG2_ASSERT(!d->fbo || glIsFramebuffer(d->fbo));
//DENG2_ASSERT(!d->fbo || glIsFramebuffer(d->fbo));
if(d->fbo && !glIsFramebuffer(d->fbo))
{
qDebug() << "GLTarget: WARNING! Attempting to bind FBO" << d->fbo
<< "that is not a valid OpenGL FBO";
}

//qDebug() << "GLTarget: binding FBO" << d->fbo;
glBindFramebuffer(GLInfo::extensions().EXT_framebuffer_blit?
Expand Down

0 comments on commit 2ec76b3

Please sign in to comment.