[PATCH 2/5] wined3d: Set palettes on the swapchain.

Henri Verbeet hverbeet at gmail.com
Thu May 15 11:16:42 CDT 2014

On 15 May 2014 15:36, Stefan Dösinger <stefandoesinger at gmail.com> wrote:
>> I don't think this kind of thing should be needed. You should be able
>> to make the palette texture that currently lives in the ARB program
>> shader backend a property of the wined3d palette, and then presents
>> can just make sure the palette texture is current. Something similar,
>> if perhaps slightly more involved, should be possible for the GDI
>> swapchain with GDI palettes.
> We have to redraw the front buffer when the palette is changed for palette fading to work. We can’t wait for the next present, nor can we initiate a regular present since we want the front buffer redrawn, and not the back buffer.

I should perhaps have explicitly mentioned blits to the front buffer
instead of presents as such, but the principle is the same of course.
In ddraw, when you call SetEntries() on a palette with
DDPCAPS_PRIMARYSURFACE set, you can just call

More information about the wine-devel mailing list