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

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2018-11-01 11:07:27 +03:30 committed by Alexandre Julliard
parent 6435bd743b
commit 220c078ed9

View file

@ -1783,7 +1783,7 @@ void wined3d_texture_prepare_texture(struct wined3d_texture *texture, struct win
if (srgb)
internal = format_gl->srgb_internal;
else if (resource->usage & WINED3DUSAGE_RENDERTARGET && wined3d_resource_is_offscreen(resource))
else if (resource->bind_flags & WINED3D_BIND_RENDER_TARGET && wined3d_resource_is_offscreen(resource))
internal = format_gl->rt_internal;
else
internal = format_gl->internal;