- fixed strange messagebox display (was caused by map preview renderer setting glLineWidth to 14 and never resetting afterwards)

This commit is contained in:
Mark Vejvoda
2011-04-24 05:39:13 +00:00
parent 68a906ab2a
commit 1f3d97dbe1
5 changed files with 21 additions and 14 deletions

View File

@@ -633,6 +633,13 @@ void TextureGl::dettachFrameBufferFromTexture() {
// Does the GPU support current FBO configuration?
GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);
if(status != GL_FRAMEBUFFER_COMPLETE_EXT) {
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"checkFrameBufferStatus() status = %d [%X]\n",status,status);
return false;
}
return true;
}
return false;
}
void TextureGl::dettachFrameBufferFromTexture() {