mirror of https://github.com/aap/librw.git
zero d3d device cache
This commit is contained in:
parent
78d540fce0
commit
61b288a9fe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue