Skip to content
Snippets Groups Projects
Commit 220c078e authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard
Browse files

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

parent 6435bd74
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment