Module: wine Branch: master Commit: e4c0d6abbea9891aa60312e02f55b0081875fe0d URL: http://source.winehq.org/git/wine.git/?a=commit;h=e4c0d6abbea9891aa60312e02f...
Author: Matteo Bruni mbruni@codeweavers.com Date: Mon Jan 9 15:52:43 2012 +0100
wined3d: Don't try to remove the location flag if it's not there in the first place.
---
dlls/wined3d/surface.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 4a49048..8d5dd1b 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -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;