wined3d: Get rid of the render target / overlay check in wined3d_surface_flip().
The surface needs to be part of a swapchain to be flipped, but that doesn't have much to do with WINED3DUSAGE_RENDERTARGET. We can just remove the check here, because ddraw_surface7_Flip() already has the correct check.
This commit is contained in:
parent
10251e5ab0
commit
aea8d5c11e
|
@ -3706,13 +3706,6 @@ HRESULT CDECL wined3d_surface_flip(struct wined3d_surface *surface, struct wined
|
||||||
return WINEDDERR_NOTFLIPPABLE;
|
return WINEDDERR_NOTFLIPPABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Flipping is only supported on render targets and overlays. */
|
|
||||||
if (!(surface->resource.usage & (WINED3DUSAGE_RENDERTARGET | WINED3DUSAGE_OVERLAY)))
|
|
||||||
{
|
|
||||||
WARN("Tried to flip a non-render target, non-overlay surface.\n");
|
|
||||||
return WINEDDERR_NOTFLIPPABLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
flip_surface(surface, override);
|
flip_surface(surface, override);
|
||||||
|
|
||||||
/* Update overlays if they're visible. */
|
/* Update overlays if they're visible. */
|
||||||
|
|
Loading…
Reference in New Issue