force disable fbo if it fails to create
This commit is contained in:
1 parent
2ac26275ea
commit
da8d8f57c6
1 file changed
+5
@@ -3108,7 +3108,12 @@ static void GL_Framebuffer_Generate(void)
|
||||
pglGenFramebuffers(1, &framebufferobject.fboobj);
|
||||
|
||||
if (pglCheckFramebufferStatus(GL_FRAMEBUFFER_EXT) != GL_FRAMEBUFFER_COMPLETE_EXT)
|
||||
{
|
||||
// if this fails, dont retry it a gazillion times
|
||||
// this wouldnt recover
|
||||
supportFBO = false;
|
||||
return;
|
||||
}
|
||||
|
||||
// Bind the framebuffer
|
||||
pglBindFramebuffer(GL_FRAMEBUFFER_EXT, framebufferobject.fboobj);
|
||||
|
||||
Reference in new issue
Block a user