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:
Henri Verbeet 2013-09-11 08:47:48 +02:00 committed by Alexandre Julliard
parent 10251e5ab0
commit aea8d5c11e
1 changed files with 0 additions and 7 deletions

View File

@ -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. */