[PATCH 4/5] ddraw: Create managed pool textures

Stefan Dösinger stefan at codeweavers.com
Thu Sep 5 03:42:14 CDT 2013


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 4108fcd..62d3218 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;
-- 
1.8.1.5




More information about the wine-patches mailing list