Commit 1d43f072 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use draw_binding in surface_realize_palette().

parent 683b52ed
...@@ -811,7 +811,7 @@ static void surface_realize_palette(struct wined3d_surface *surface) ...@@ -811,7 +811,7 @@ static void surface_realize_palette(struct wined3d_surface *surface)
/* Propagate the changes to the drawable when we have a palette. */ /* Propagate the changes to the drawable when we have a palette. */
if (surface->resource.usage & WINED3DUSAGE_RENDERTARGET) 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) static HRESULT surface_draw_overlay(struct wined3d_surface *surface)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment