From 74b4b821ab1759d8f8c938cf6a44247601c6a7c2 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 5 Mar 2014 10:46:35 +0100 Subject: [PATCH] ddraw: Clear DDSD_LPSURFACE after surface creation. --- dlls/ddraw/surface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c index 4a1b1123496..bf49e153c99 100644 --- a/dlls/ddraw/surface.c +++ b/dlls/ddraw/surface.c @@ -6080,6 +6080,8 @@ HRESULT ddraw_surface_init(struct ddraw_surface *surface, struct ddraw *ddraw, s ERR("Failed to set surface memory, hr %#x.\n", hr); return hr; } + + desc->dwFlags &= ~DDSD_LPSURFACE; } wined3d_surface_incref(wined3d_surface); -- 2.11.4.GIT