wined3d: Respect the "srgb" parameter to IWineD3DSurfaceImpl_BindTexture().

Henri Verbeet hverbeet at codeweavers.com
Fri Jun 12 02:46:04 CDT 2009


This is mostly for consistency, standalone surfaces can't be used for
texturing, so in practice "srgb" should always be FALSE in this path.
---
 dlls/wined3d/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 5cf28a1..116cff0 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2479,7 +2479,7 @@ static void WINAPI IWineD3DSurfaceImpl_BindTexture(IWineD3DSurface *iface, BOOL
             ERR("Mipmap surface has a glTexture bound to it!\n");
         }
 
-        glBindTexture(This->glDescription.target, This->glDescription.textureName);
+        glBindTexture(This->glDescription.target, *name);
         checkGLcall("glBindTexture");
 
         LEAVE_GL();
-- 
1.6.0.6



--------------030306050709020006020505--



More information about the wine-patches mailing list