ddraw: Create managed pool textures.

The surfaces are already in WINED3D_POOL_MANAGED.
This commit is contained in:
Stefan Dösinger 2013-09-05 10:42:14 +02:00 committed by Alexandre Julliard
parent 8da09ba196
commit b88daee3bc
1 changed files with 3 additions and 3 deletions

View File

@ -5607,9 +5607,9 @@ HRESULT ddraw_surface_create_texture(struct ddraw_surface *surface, DWORD surfac
else
layers = 1;
/* DDSCAPS_SYSTEMMEMORY textures are in WINED3D_POOL_SYSTEM_MEM.
* Should I forward the MANAGED cap to the managed pool? */
if (desc->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY)
if (desc->ddsCaps.dwCaps2 & DDSCAPS2_TEXTUREMANAGE)
pool = WINED3D_POOL_MANAGED;
else if (desc->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY)
pool = WINED3D_POOL_SYSTEM_MEM;
else
pool = WINED3D_POOL_DEFAULT;