ddraw: Only reset the device when creating an exclusive mode front buffer in ddraw_surface_create_texture().
This commit is contained in:
parent
4122cd8083
commit
8ce73e2ad6
|
@ -5646,7 +5646,9 @@ HRESULT ddraw_surface_create_texture(struct ddraw *ddraw, DDSURFACEDESC2 *desc,
|
||||||
if (!desc->dwWidth || !desc->dwHeight)
|
if (!desc->dwWidth || !desc->dwHeight)
|
||||||
return DDERR_INVALIDPARAMS;
|
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;
|
struct wined3d_swapchain_desc swapchain_desc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue