Revert "fix fbo support checks"

This reverts commit 288f13105b.
This commit is contained in:
alufolie91 committed 2026-07-14 08:54:32 +02:00
1 parent 1bc51e8b26
commit d01a60494e
1 file changed
+10 -10
+10 -10
View File
@@ -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