Roderick Colenbrander : wined3d: Rebind the 2D texture corresponding to the p8 surface. In some programs this caused nothing to show up.

Alexandre Julliard julliard at winehq.org
Mon Oct 22 09:55:25 CDT 2007


Module: wine
Branch: master
Commit: e1a3e9a6efe4863eeafa3a6e75408278024fd857
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e1a3e9a6efe4863eeafa3a6e75408278024fd857

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Sat Oct 20 20:20:19 2007 +0200

wined3d: Rebind the 2D texture corresponding to the p8 surface. In some programs this caused nothing to show up.

---

 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);
     }
 }
 




More information about the wine-cvs mailing list