Commit 8ce73e2a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Only reset the device when creating an exclusive mode front buffer in…

ddraw: Only reset the device when creating an exclusive mode front buffer in ddraw_surface_create_texture().
parent 4122cd80
......@@ -5646,7 +5646,9 @@ HRESULT ddraw_surface_create_texture(struct ddraw *ddraw, DDSURFACEDESC2 *desc,
if (!desc->dwWidth || !desc->dwHeight)
return DDERR_INVALIDPARAMS;
if ((desc->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE) && (ddraw->cooperative_level & DDSCL_EXCLUSIVE))
if ((desc->ddsCaps.dwCaps & (DDSCAPS_PRIMARYSURFACE | DDSCAPS_FRONTBUFFER))
== (DDSCAPS_PRIMARYSURFACE | DDSCAPS_FRONTBUFFER)
&& (ddraw->cooperative_level & DDSCL_EXCLUSIVE))
{
struct wined3d_swapchain_desc swapchain_desc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment