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

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:26 +03:30 committed by Alexandre Julliard
parent 14434751dd
commit 6435bd743b
1 changed files with 1 additions and 1 deletions

View File

@ -2053,7 +2053,7 @@ void wined3d_texture_upload_data(struct wined3d_texture *texture, unsigned int s
if (srgb)
internal = format_gl->srgb_internal;
else if (texture->resource.usage & WINED3DUSAGE_RENDERTARGET
else if (texture->resource.bind_flags & WINED3D_BIND_RENDER_TARGET
&& wined3d_resource_is_offscreen(&texture->resource))
internal = format_gl->rt_internal;
else