[14/20] DDraw: Forward the DDSCAPS2_TEXTUREMANAGE flag to wined3d

Stefan Dösinger stefan at codeweavers.com
Sat Jan 6 11:27:46 CST 2007


This flag equals the WINED3DPOOL_MANAGED pool. Hopefully that patch fixes all 
the ddraw video memory counting issues.
-------------- next part --------------
From 49c115c883fa7901a0359977aecac180ed5aa85f Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Fri, 5 Jan 2007 20:10:00 +0100
Subject: [PATCH] DDraw: Forward the DDSCAPS2_TEXTUREMANAGE flag to wined3d

---
 dlls/ddraw/ddraw.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 8b80586..bb7243d 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -1826,6 +1826,10 @@ IDirectDrawImpl_CreateNewSurface(IDirect
     {
         Pool = WINED3DPOOL_SYSTEMMEM;
     }
+    else if(pDDSD->ddsCaps.dwCaps2 & DDSCAPS2_TEXTUREMANAGE)
+    {
+        Pool = WINED3DPOOL_MANAGED;
+    }
 
     Format = PixelFormat_DD2WineD3D(&pDDSD->u4.ddpfPixelFormat);
     if(Format == WINED3DFMT_UNKNOWN)
-- 
1.4.2.4



More information about the wine-patches mailing list