[PATCH 3/5] wined3d: Only unload the surface when we're using GL for rendering in updateSurfaceDesc().
Henri Verbeet
hverbeet at codeweavers.com
Sun Dec 4 08:50:14 CST 2011
---
dlls/wined3d/device.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 515ff06..5b48d77 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5230,7 +5230,8 @@ static HRESULT updateSurfaceDesc(struct wined3d_surface *surface,
surface->resource.multisample_type = swapchain_desc->multisample_type;
surface->resource.multisample_quality = swapchain_desc->multisample_quality;
- surface->resource.resource_ops->resource_unload(&surface->resource);
+ if (device->d3d_initialized)
+ surface->resource.resource_ops->resource_unload(&surface->resource);
if (surface->pow2Width != swapchain_desc->backbuffer_width
|| surface->pow2Height != swapchain_desc->backbuffer_height)
--
1.7.3.4
More information about the wine-patches
mailing list