Commit d219903c authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Check for WINED3DUSAGE_LEGACY_CUBEMAP instead of checking the GL texture target.

This check was introduced in 4640be8d. At that point the only way for that condition to be false was for a cube map texture. It's not clear why cube maps are relevant here; we have no tests for this, but it seems most expedient to just preserve the intent of the check.
parent df70800b
......@@ -6479,11 +6479,7 @@ void wined3d_ffp_get_fs_settings(const struct wined3d_context *context, const st
if (!i && texture && state->render_states[WINED3D_RS_COLORKEYENABLE])
{
GLenum texture_dimensions;
texture_dimensions = wined3d_texture_gl(texture)->target;
if (texture_dimensions == GL_TEXTURE_2D || texture_dimensions == GL_TEXTURE_RECTANGLE_ARB)
if (!(texture->resource.usage & WINED3DUSAGE_LEGACY_CUBEMAP))
{
if (texture->async.color_key_flags & WINED3D_CKEY_SRC_BLT && !texture->resource.format->alpha_size)
{
......
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