Commit aea8d5c1 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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.
parent 10251e5a
......@@ -3706,13 +3706,6 @@ HRESULT CDECL wined3d_surface_flip(struct wined3d_surface *surface, struct wined
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);
/* Update overlays if they're visible. */
......
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