ddraw: Implement IDirect3D7::EvictManagedTextures.

This commit is contained in:
Stefan Dösinger 2011-06-14 20:21:08 +02:00 committed by Alexandre Julliard
parent 19a1b74252
commit 07c761a6a1
1 changed files with 8 additions and 4 deletions

View File

@ -5126,12 +5126,16 @@ static HRESULT WINAPI d3d3_EnumZBufferFormats(IDirect3D3 *iface, REFCLSID device
*****************************************************************************/
static HRESULT WINAPI d3d7_EvictManagedTextures(IDirect3D7 *iface)
{
FIXME("iface %p stub!\n", iface);
IDirectDrawImpl *This = impl_from_IDirect3D7(iface);
HRESULT hr;
TRACE("iface %p!\n", iface);
/* TODO: Just enumerate resources using IWineD3DDevice_EnumResources(),
* then unload surfaces / textures. */
EnterCriticalSection(&ddraw_cs);
if (!This->d3d_initialized) hr = D3D_OK;
else hr = wined3d_device_evict_managed_resources(This->wined3d_device);
LeaveCriticalSection(&ddraw_cs);
return D3D_OK;
return hr;
}
static HRESULT WINAPI d3d3_EvictManagedTextures(IDirect3D3 *iface)