From b88daee3bce083f8121117e9d0bece715eb8490c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Thu, 5 Sep 2013 10:42:14 +0200 Subject: [PATCH] ddraw: Create managed pool textures. The surfaces are already in WINED3D_POOL_MANAGED. --- dlls/ddraw/surface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c index 6435774160e..b7136e1646b 100644 --- a/dlls/ddraw/surface.c +++ b/dlls/ddraw/surface.c @@ -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;