mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
wined3d: Don't try to remove the location flag if it's not there in the first place.
This commit is contained in:
parent
2b51d38d3c
commit
e4c0d6abbe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user