diff options
author | Zack Middleton <zturtleman@gmail.com> | 2013-11-20 21:37:17 -0600 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:36 +0100 |
commit | b90e72cf5a5b6fa151746f412334779902ae4a86 (patch) | |
tree | 4c66f227dafdeea81c40d55abbee292b874dced8 /src | |
parent | 8dd7f524da987854ba07457daf180c5c5af81d44 (diff) |
End current draw surface before drawing cinematic
Fixes drawing StretchPic *before* CIN_DrawCinematic resulting
in cinematic being drawn before the StretchPic.
Diffstat (limited to 'src')
-rw-r--r-- | src/renderergl1/tr_backend.c | 4 | ||||
-rw-r--r-- | src/renderergl2/tr_backend.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/renderergl1/tr_backend.c b/src/renderergl1/tr_backend.c index adc97169..803bc4a2 100644 --- a/src/renderergl1/tr_backend.c +++ b/src/renderergl1/tr_backend.c @@ -738,6 +738,10 @@ void RE_StretchRaw (int x, int y, int w, int h, int cols, int rows, const byte * } R_IssuePendingRenderCommands(); + if ( tess.numIndexes ) { + RB_EndSurface(); + } + // we definately want to sync every frame for the cinematics qglFinish(); diff --git a/src/renderergl2/tr_backend.c b/src/renderergl2/tr_backend.c index def0786a..a7118376 100644 --- a/src/renderergl2/tr_backend.c +++ b/src/renderergl2/tr_backend.c @@ -831,6 +831,10 @@ void RE_StretchRaw (int x, int y, int w, int h, int cols, int rows, const byte * } R_IssuePendingRenderCommands(); + if ( tess.numIndexes ) { + RB_EndSurface(); + } + // we definately want to sync every frame for the cinematics qglFinish(); |