diff --git a/src/d3d/d3ddevice.cpp b/src/d3d/d3ddevice.cpp index e2462b9..2f39ac8 100644 --- a/src/d3d/d3ddevice.cpp +++ b/src/d3d/d3ddevice.cpp @@ -1599,6 +1599,7 @@ initD3D(void) { int32 s, t; + memset(&deviceCache, 0, sizeof(deviceCache)); d3ddevice->GetRenderTarget(0, &d3d9Globals.defaultRenderTarget); d3d9Globals.defaultRenderTarget->Release(); // refcount increased by Get deviceCache.renderTargets[0] = d3d9Globals.defaultRenderTarget;