Henri Verbeet : wined3d: Use draw_binding in surface_realize_palette().

Alexandre Julliard julliard at winehq.org
Thu Aug 25 13:00:11 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Aug 24 22:08:43 2011 +0200

wined3d: Use draw_binding in surface_realize_palette().

---

 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 604073d..3edb48b 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -811,7 +811,7 @@ static void surface_realize_palette(struct wined3d_surface *surface)
 
     /* Propagate the changes to the drawable when we have a palette. */
     if (surface->resource.usage & WINED3DUSAGE_RENDERTARGET)
-        surface_load_location(surface, SFLAG_INDRAWABLE, NULL);
+        surface_load_location(surface, surface->draw_binding, NULL);
 }
 
 static HRESULT surface_draw_overlay(struct wined3d_surface *surface)




More information about the wine-cvs mailing list