wined3d: Prefer bind flags over usage flags in texture2d_load_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-02 13:03:14 +03:30 committed by Alexandre Julliard
parent 43e7568666
commit 49af0e73f7
1 changed files with 1 additions and 1 deletions

View File

@ -1525,7 +1525,7 @@ BOOL texture2d_load_texture(struct wined3d_texture *texture, unsigned int sub_re
struct wined3d_box src_box;
BOOL depth;
depth = texture->resource.usage & WINED3DUSAGE_DEPTHSTENCIL;
depth = texture->resource.bind_flags & WINED3D_BIND_DEPTH_STENCIL;
sub_resource = &texture->sub_resources[sub_resource_idx];
if (!depth && wined3d_settings.offscreen_rendering_mode != ORM_FBO