DXGL r862 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r861‎ | r862 | r863 >
Date:14:58, 9 September 2018
Author:admin
Status:new
Tags:
Comment:
Initialize ddsdSrc in glRenderer__Blt to avoid uninitialized data exceptions in debug mode.
Modified paths:
  • /ddraw/glRenderer.cpp (modified) (history)

Diff [purge]

Index: ddraw/glRenderer.cpp
@@ -3407,6 +3407,7 @@
34083408 glUtil_SetViewport(This->util,0,0,cmd->dest->bigwidth,cmd->dest->bigheight);
34093409 glUtil_DepthTest(This->util, FALSE);
34103410 DDSURFACEDESC2 ddsdSrc;
 3411+ ZeroMemory(&ddsdSrc, sizeof(DDSURFACEDESC2));
34113412 ddsdSrc.dwSize = sizeof(DDSURFACEDESC2);
34123413 if (cmd->src)
34133414 {