Henri Verbeet : wined3d: Only unload the surface when we' re using GL for rendering in updateSurfaceDesc().
Alexandre Julliard
julliard at winehq.org
Mon Dec 5 14:55:00 CST 2011
Module: wine
Branch: master
Commit: c43aa1ada82e30168a373d584ad7ef62a5e04677
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c43aa1ada82e30168a373d584ad7ef62a5e04677
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Sun Dec 4 15:50:14 2011 +0100
wined3d: Only unload the surface when we're using GL for rendering in updateSurfaceDesc().
---
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)
More information about the wine-cvs
mailing list