Commit 06aab271 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Remove a texture dimension check in state_alpha().

I don't think there's any reason color-keying shouldn't work on e.g. cube textures, although it probably isn't very common either.
parent 6eb5c891
...@@ -528,16 +528,10 @@ static void state_alpha(struct wined3d_context *context, const struct wined3d_st ...@@ -528,16 +528,10 @@ static void state_alpha(struct wined3d_context *context, const struct wined3d_st
*/ */
if (state->textures[0]) if (state->textures[0])
{ {
struct wined3d_texture *texture = state->textures[0]; struct wined3d_surface *surface = surface_from_resource(state->textures[0]->sub_resources[0]);
GLenum texture_dimensions = texture->target;
if (texture_dimensions == GL_TEXTURE_2D || texture_dimensions == GL_TEXTURE_RECTANGLE_ARB) if (surface->CKeyFlags & WINEDDSD_CKSRCBLT)
{ enable_ckey = TRUE;
struct wined3d_surface *surf = surface_from_resource(texture->sub_resources[0]);
if (surf->CKeyFlags & WINEDDSD_CKSRCBLT)
enable_ckey = TRUE;
}
} }
if (enable_ckey || context->last_was_ckey) if (enable_ckey || context->last_was_ckey)
......
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