Skip to content

Commit

Permalink
spearmint: Update for drawing everything to FBO
Browse files Browse the repository at this point in the history
The behavior was changed in ioquake3 commit:
"OpenGL2: Don't mix drawing to default framebuffer and FBO"
commit f9547e4
  • Loading branch information
zturtleman committed Mar 3, 2024
1 parent 5f3b55a commit c31dee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/renderergl2/tr_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ const void* RB_Draw2dPolys( const void* data ) {
cmd = (const poly2dCommand_t* )data;

if (glRefConfig.framebufferObject) {
FBO_Bind(r_postProcess->integer ? NULL : tr.renderFbo);
FBO_Bind(tr.renderFbo);
}

RB_SetGL2D();
Expand Down Expand Up @@ -974,7 +974,7 @@ const void *RB_RotatedPic( const void *data ) {
cmd = (const stretchPicCommand_t *)data;

if (glRefConfig.framebufferObject) {
FBO_Bind(r_postProcess->integer ? NULL : tr.renderFbo);
FBO_Bind(tr.renderFbo);
}

RB_SetGL2D();
Expand Down Expand Up @@ -1061,7 +1061,7 @@ const void *RB_StretchPicGradient( const void *data ) {
cmd = (const stretchPicCommand_t *)data;

if (glRefConfig.framebufferObject) {
FBO_Bind(r_postProcess->integer ? NULL : tr.renderFbo);
FBO_Bind(tr.renderFbo);
}

RB_SetGL2D();
Expand Down

0 comments on commit c31dee9

Please sign in to comment.