Commit b88daee3 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

ddraw: Create managed pool textures.

The surfaces are already in WINED3D_POOL_MANAGED.
parent 8da09ba1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment