DXGL r622 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r621‎ | r622 | r623 >
Date:20:54, 24 October 2015
Author:admin
Status:new
Tags:
Comment:
Check Blt destination and upload if modified client-side.
Modified paths:
  • /ddraw/glRenderer.cpp (modified) (history)

Diff [purge]

Index: ddraw/glRenderer.cpp
@@ -1610,7 +1610,8 @@
16111611 if (cmd->src->mipmaps[cmd->srclevel].dirty & 1)
16121612 glTexture__Upload(cmd->src, cmd->srclevel, FALSE, FALSE);
16131613 }
1614 -
 1614+ if (cmd->dest->mipmaps[cmd->destlevel].dirty & 1)
 1615+ glTexture__Upload(cmd->dest, cmd->destlevel, FALSE, FALSE);
16151616 if (!memcmp(&cmd->srcrect, &nullrect, sizeof(RECT)))
16161617 {
16171618 srcrect.left = 0;