force disable fbo if it fails to create

This commit is contained in:
Alug committed 2025-09-22 23:47:31 +02:00
1 parent 2ac26275ea
commit da8d8f57c6
1 file changed
+5
+5
View File
@@ -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);