Commit e4c0d6ab authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Don't try to remove the location flag if it's not there in the first place.

parent 2b51d38d
......@@ -2041,8 +2041,10 @@ void surface_set_texture_name(struct wined3d_surface *surface, GLuint new_name,
/* FIXME: We shouldn't need to remove SFLAG_INTEXTURE if the
* surface has no texture name yet. See if we can get rid of this. */
if (surface->flags & flag)
{
ERR("Surface has %s set, but no texture name.\n", debug_surflocation(flag));
surface_modify_location(surface, flag, FALSE);
surface_modify_location(surface, flag, FALSE);
}
}
*name = new_name;
......
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