#5878: Ensure surfaces are drawn before executing full-screen render commands, and when at the end of the render command list.
This commit is contained in:
1 parent
c0d5ba9e06
commit
bff574e04e
2 files changed
+31
-2
No files matched your search
+10
-2
@@ -538,7 +538,11 @@ const void *RB_TakeScreenshotCmd( const void *data ) {
|
||||
const screenshotCommand_t *cmd;
|
||||
|
||||
cmd = (const screenshotCommand_t *)data;
|
||||
|
||||
|
||||
// finish any 2D drawing if needed
|
||||
if(tess.numIndexes)
|
||||
RB_EndSurface();
|
||||
|
||||
if (cmd->jpeg)
|
||||
RB_TakeScreenshotJPEG( cmd->x, cmd->y, cmd->width, cmd->height, cmd->fileName);
|
||||
else
|
||||
@@ -820,7 +824,11 @@ const void *RB_TakeVideoFrameCmd( const void *data )
|
||||
size_t memcount, linelen;
|
||||
int padwidth, avipadwidth, padlen, avipadlen;
|
||||
GLint packAlign;
|
||||
|
||||
|
||||
// finish any 2D drawing if needed
|
||||
if(tess.numIndexes)
|
||||
RB_EndSurface();
|
||||
|
||||
cmd = (const videoFrameCommand_t *)data;
|
||||
|
||||
qglGetIntegerv(GL_PACK_ALIGNMENT, &packAlign);
|
||||
|
||||
Reference in new issue
Block a user