Commit 220c078e authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 6435bd74
...@@ -1783,7 +1783,7 @@ void wined3d_texture_prepare_texture(struct wined3d_texture *texture, struct win ...@@ -1783,7 +1783,7 @@ void wined3d_texture_prepare_texture(struct wined3d_texture *texture, struct win
if (srgb) if (srgb)
internal = format_gl->srgb_internal; 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; internal = format_gl->rt_internal;
else else
internal = format_gl->internal; internal = format_gl->internal;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment