From b90e72cf5a5b6fa151746f412334779902ae4a86 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Wed, 20 Nov 2013 21:37:17 -0600 Subject: End current draw surface before drawing cinematic Fixes drawing StretchPic *before* CIN_DrawCinematic resulting in cinematic being drawn before the StretchPic. --- src/renderergl1/tr_backend.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/renderergl1') 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(); -- cgit