summaryrefslogtreecommitdiff
path: root/src/rend2/tr_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rend2/tr_cmds.c')
-rw-r--r--src/rend2/tr_cmds.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/rend2/tr_cmds.c b/src/rend2/tr_cmds.c
index b853f2fe..9945da3f 100644
--- a/src/rend2/tr_cmds.c
+++ b/src/rend2/tr_cmds.c
@@ -498,12 +498,7 @@ void RE_BeginFrame( stereoFrame_t stereoFrame ) {
backEnd.colorMask[2] = GL_FALSE;
backEnd.colorMask[3] = GL_FALSE;
qglClearColor(0.0f, 0.0f, 0.0f, 1.0f);
-
- qglDrawBuffer(GL_FRONT);
- qglClear(GL_COLOR_BUFFER_BIT);
- qglDrawBuffer(GL_BACK);
- qglClear(GL_COLOR_BUFFER_BIT);
-
+
if (glRefConfig.framebufferObject)
{
// clear all framebuffers
@@ -530,15 +525,17 @@ void RE_BeginFrame( stereoFrame_t stereoFrame ) {
break;
}
- qglDrawBuffer(GL_FRONT);
qglClear(GL_COLOR_BUFFER_BIT);
- qglDrawBuffer(GL_BACK);
- qglClear(GL_COLOR_BUFFER_BIT);
}
FBO_Bind(NULL);
}
+ qglDrawBuffer(GL_FRONT);
+ qglClear(GL_COLOR_BUFFER_BIT);
+ qglDrawBuffer(GL_BACK);
+ qglClear(GL_COLOR_BUFFER_BIT);
+
r_anaglyphMode->modified = qfalse;
}