From d01a60494ebd17f887fb558f8a06486ec6740b41 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 14 Jul 2026 08:54:32 +0200 Subject: [PATCH] Revert "fix fbo support checks" This reverts commit 288f13105b6978a0f6f8ec7597095e7834547955. --- src/hardware/r_opengl/r_opengl.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 6341f9879..498522663 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -881,7 +881,7 @@ void SetupGLFunc4(void) { \ GL_MSG_Warning("failed to get OpenGL FBO function: %s\n", #func); \ GL_DBG_Printf("\nFBO: No framebuffer object support\n"); \ - supportFBO = FBOext_NONE; \ + supportFBO = false; \ return; \ } \ @@ -3247,7 +3247,7 @@ void GL_SetTransform(FTransform *stransform) #ifdef USE_FBO_OGL static void GL_FBO_DeleteAllAttachments(void) { - if (supportFBO == FBOext_NONE) + if (!supportFBO) return; // bind back the main framebuffer @@ -3279,7 +3279,7 @@ static void GL_FBO_DeleteAttachments(int fbonum) { fboobj_t *fbo = &fbos[fbonum]; - if (supportFBO == FBOext_NONE || !fbo->init) + if (!supportFBO || !fbo->init) return; // bind back the main framebuffer @@ -3303,7 +3303,7 @@ static void GL_FBO_Generate(int fbonum, int width, int height) { fboobj_t *fbo = &fbos[fbonum]; - if (supportFBO == FBOext_NONE || fbo->init) + if (!supportFBO || fbo->init) return; // Generate the framebuffer @@ -3365,7 +3365,7 @@ static void GL_FBO_Generate(int fbonum, int width, int height) // if this fails, dont retry it a gazillion times // this wouldnt recover - supportFBO = FBOext_NONE; + supportFBO = false; } else { @@ -3380,7 +3380,7 @@ void GL_FBO_BindMainFramebuffer(int fbonum) { fboobj_t *fbo = &fbos[fbonum]; - if (supportFBO == FBOext_NONE || !fbo->init) + if (!supportFBO || !fbo->init) return; pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); @@ -3391,7 +3391,7 @@ void GL_FBO_Enable(int fbonum, int width, int height) { fboobj_t *fbo = &fbos[fbonum]; - if (supportFBO == FBOext_NONE) + if (!supportFBO) return; // if the fbo doesent exist, create it! @@ -3399,7 +3399,7 @@ void GL_FBO_Enable(int fbonum, int width, int height) GL_FBO_Generate(fbonum, width, height); // failed - if (supportFBO == FBOext_NONE || !fbo->init) + if (!supportFBO || !fbo->init) return; pglBindFramebuffer(GL_FRAMEBUFFER_EXT, fbo->fboobj); @@ -3408,7 +3408,7 @@ void GL_FBO_Enable(int fbonum, int width, int height) void GL_FBO_DestroyAll(void) { - if (supportFBO == FBOext_NONE) + if (!supportFBO) return; // bind back the main framebuffer @@ -3435,7 +3435,7 @@ void GL_FBO_Destroy(int fbonum) { fboobj_t *fbo = &fbos[fbonum]; - if (supportFBO == FBOext_NONE || !fbo->init) + if (!supportFBO || !fbo->init) return; // bind back the main framebuffer