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

This commit is contained in:
Matteo Bruni 2012-01-09 15:52:43 +01:00 committed by Alexandre Julliard
parent 2b51d38d3c
commit e4c0d6abbe
1 changed files with 3 additions and 1 deletions

View File

@ -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;