Commit d9ace3c9 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Only invalidate the INDRAWABLE location for onscreen surfaces in…

wined3d: Only invalidate the INDRAWABLE location for onscreen surfaces in surface_realize_palette(). For offscreen surfaces this might actually remove the texture we just loaded.
parent a05841bd
......@@ -611,6 +611,7 @@ static void surface_realize_palette(IWineD3DSurfaceImpl *surface)
surface_load_location(surface, SFLAG_INTEXTURE, NULL);
/* We want to force a palette refresh, so mark the drawable as not being up to date */
if (!surface_is_offscreen(surface))
surface_modify_location(surface, SFLAG_INDRAWABLE, FALSE);
}
else
......
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