[PATCH] Rebind the 2D texture corresponding to the p8 surface. In some programs this caused nothing to show up. Not all programs were affected as some codepaths rebind the texture.

Roderick Colenbrander thunderbird2k at gmx.net
Sat Oct 20 13:20:19 CDT 2007


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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 8c14288..f729b39 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2031,6 +2031,9 @@ static void d3dfmt_p8_upload_palette(IWineD3DSurface *iface, CONVERT_TYPES conve
 
         /* Switch back to unit 0 in which the 2D texture will be stored. */
         GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0));
+
+        /* Rebind the texture because it isn't bound anymore */
+        glBindTexture(This->glDescription.target, This->glDescription.textureName);
     }
 }
 
-- 
1.5.1.3


--========GMX252351192920038301987--



More information about the wine-patches mailing list