DXGL r922 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r921‎ | r922 | r923 >
Date:00:39, 11 May 2019
Author:admin
Status:new
Tags:
Comment:
Fix Blt commands that read from the destination surface.
Modified paths:
  • /ddraw/glRenderer.cpp (modified) (history)

Diff [purge]

Index: ddraw/glRenderer.cpp
@@ -3396,7 +3396,7 @@
33973397 {
33983398 ShaderManager_SetShader(This->shaders, PROG_TEXTURE, NULL, 0);
33993399 if(!(cmd->flags & 0x80000000))
3400 - (This, cmd->dest, destrect, destrect2, PROG_TEXTURE);
 3400+ glRenderer__DrawBackbufferRect(This, cmd->dest, destrect, destrect2, PROG_TEXTURE);
34013401 This->bltvertices[1].dests = This->bltvertices[3].dests = 0.0f;
34023402 This->bltvertices[0].dests = This->bltvertices[2].dests = (GLfloat)(destrect.right - destrect.left) / (GLfloat)This->backbuffer->levels[0].ddsd.dwWidth;
34033403 This->bltvertices[0].destt = This->bltvertices[1].destt = 1.0f;