From da8d8f57c65ec175618a51e52ccdddb82dd870b6 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 22 Sep 2025 23:47:31 +0200 Subject: [PATCH] force disable fbo if it fails to create --- src/hardware/r_opengl/r_opengl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 66d5098a8..15c026b32 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -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);