Author: gbrunmar
Date: Mon May 5 14:32:41 2008
New Revision: 33304
URL:
http://svn.reactos.org/svn/reactos?rev=33304&view=rev
Log:
Made IDirect3DDevice9::GetAvailableTextureMem() less error prone, based on feedback from
GreatLord
Modified:
trunk/reactos/dll/directx/d3d9/d3d9_device.c
Modified: trunk/reactos/dll/directx/d3d9/d3d9_device.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/d3d9/d3d9_devi…
==============================================================================
--- trunk/reactos/dll/directx/d3d9/d3d9_device.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/d3d9/d3d9_device.c [iso-8859-1] Mon May 5 14:32:41 2008
@@ -95,6 +95,7 @@
memset(&ddGetAvailDriverMemoryData, 0, sizeof(ddGetAvailDriverMemoryData));
ddGetAvailDriverMemoryData.lpDD =
(LPDDRAWI_DIRECTDRAW_GBL)&This->DeviceData[0].pUnknown6BC->hDD;
+ ddGetAvailDriverMemoryData.ddRVal = DDERR_GENERIC;
if (DDHAL_DRIVER_HANDLED ==
(*This->DeviceData[0].D3D9Callbacks.DdGetAvailDriverMemory)(&ddGetAvailDriverMemoryData))
{