Alexander Dorofeyev : wined3d: Remove glFlush in RealizePalette.

Alexandre Julliard julliard at winehq.org
Wed Sep 3 07:43:44 CDT 2008


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

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Sun Aug 31 17:05:30 2008 +0300

wined3d: Remove glFlush in RealizePalette.

glFlush was added to surface_blt_to_drawable some time ago, which is a
more general fix and makes this one superfluous.

---

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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 7870d4b..500b05d 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3812,10 +3812,6 @@ HRESULT WINAPI IWineD3DSurfaceImpl_RealizePalette(IWineD3DSurface *iface) {
 
             /* Re-upload the palette */
             d3dfmt_p8_upload_palette(iface, convert);
-
-            /* Without this some palette updates are missed. This at least happens on Nvidia drivers but
-             * it works fine using Mesa. */
-            glFlush();
         } else {
             if(!(This->Flags & SFLAG_INSYSMEM)) {
                 TRACE("Palette changed with surface that does not have an up to date system memory copy\n");




More information about the wine-cvs mailing list