[PATCH 3/4] wined3d: Add a missing return statement to surface_prepare_texture().
Henri Verbeet
hverbeet at codeweavers.com
Mon Jul 26 05:06:34 CDT 2010
Calling surface_prepare_texture_internal() twice on the same surface is
harmless, but unnecessary.
---
dlls/wined3d/surface.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 662cdb8..561e9c9 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1569,6 +1569,8 @@ void surface_prepare_texture(IWineD3DSurfaceImpl *surface, const struct wined3d_
}
IWineD3DBaseTexture_Release((IWineD3DBaseTexture *)texture);
+
+ return;
}
surface_prepare_texture_internal(surface, gl_info, srgb);
--
1.7.1
More information about the wine-patches
mailing list