mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 17:20:43 +02:00
- fixed strange messagebox display (was caused by map preview renderer setting glLineWidth to 14 and never resetting afterwards)
This commit is contained in:
@@ -44,6 +44,7 @@ public:
|
||||
void setup_FBO_RBO();
|
||||
void attachFrameBufferToTexture();
|
||||
void dettachFrameBufferFromTexture();
|
||||
void dettachRenderBufferFromTexture();
|
||||
bool checkFrameBufferStatus();
|
||||
void teardown_FBO_RBO();
|
||||
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user