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

wined3d: Prefer bind flags over usage flags in wined3d_device_set_rendertarget_view().

parent 542150af
......@@ -4461,9 +4461,9 @@ HRESULT CDECL wined3d_device_set_rendertarget_view(struct wined3d_device *device
return WINED3DERR_INVALIDCALL;
}
if (view && !(view->resource->usage & WINED3DUSAGE_RENDERTARGET))
if (view && !(view->resource->bind_flags & WINED3D_BIND_RENDER_TARGET))
{
WARN("View resource %p doesn't have render target usage.\n", view->resource);
WARN("View resource %p doesn't have render target bind flags.\n", view->resource);
return WINED3DERR_INVALIDCALL;
}
......
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