[3/19] WineD3D: Do not enable the texture dimensions in BindTexture

Stefan Dösinger stefan at codeweavers.com
Tue Dec 19 15:53:26 CST 2006


Enabling the texture there does not make any sense, 
drawPrimitiveUploadTextures[PS] takes care of this. Later on this would just 
confuses state management.
-------------- next part --------------
From 7e3c2e4d005027023a4813dfc9293a3df0de65ff Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Sun, 17 Dec 2006 18:58:58 +0100
Subject: [PATCH] WineD3D: Do not enable texture dimensions in BindTexture

---
 dlls/wined3d/basetexture.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c
index 3fdbf4a..9b9b5d7 100644
--- a/dlls/wined3d/basetexture.c
+++ b/dlls/wined3d/basetexture.c
@@ -236,11 +236,6 @@ HRESULT WINAPI IWineD3DBaseTextureImpl_B
 
     textureDimensions = IWineD3DBaseTexture_GetTextureDimensions(iface);
     ENTER_GL();
-#if 0 /* TODO: context manager support */
-     IWineD3DContextManager_PushState(This->contextManager, textureDimensions, ENABLED, NOW /* make sure the state is applied now */);
-#else
-    glEnable(textureDimensions);
-#endif
 
     /* Generate a texture name if we don't already have one */
     if (This->baseTexture.textureName == 0) {
-- 
1.4.2.4



More information about the wine-patches mailing list