diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 6c3a10fb1..9ef829fcb 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -1178,7 +1178,10 @@ inline void GLFramebuffer_Enable(void) void GLFramebuffer_Disable(void) { - if (!supportFBO) + if (!supportFBO || fboinit == false) + return; + + if (FramebufferObject == 0 && RenderbufferObject == 0) return; pglBindFramebuffer(GL_FRAMEBUFFER, 0);