[PATCH 2/5] wined3d: Mark the system location up to date in the DIB recreation codepath.

Stefan Dösinger stefan at codeweavers.com
Thu Jan 9 06:43:21 CST 2014


This fixes an ERR in the user memory getdc tests.

If no DIB is used, surface_init_sysmem takes care of this, even if user
memory is used. This is not ideal, but before we can get rid of
surface_init_sysmem we have to stop surface_prepare_system_memory from
creating PBOs, which requires some more preparation.
---
 dlls/wined3d/surface.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 28a3e16..546369b 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2820,6 +2820,7 @@ HRESULT CDECL wined3d_surface_update_desc(struct wined3d_surface *surface,
             return hr;
         }
         surface->resource.allocatedMemory = surface->dib.bitmap_data;
+        surface->flags |= SFLAG_INSYSMEM;
     }
     else if (!surface_init_sysmem(surface))
         return E_OUTOFMEMORY;
-- 
1.8.3.2




More information about the wine-patches mailing list