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:
parent
43e7568666
commit
49af0e73f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue