[PATCH 6/6] Due to code rewrites is_color_fixup_supported is not needed anymore in RealizePalette. The code in question should be executed in all cases. This also fixes palette refresh issues when shaders / paletted textures aren't around.

Stefan Dösinger stefandoesinger at gmx.at
Mon Apr 5 14:52:50 CDT 2010

Am 05.04.2010 um 20:05 schrieb Roderick Colenbrander:
> -        IWineD3DDeviceImpl *device = This->resource.device;
> -        if((This->resource.usage & WINED3DUSAGE_RENDERTARGET) &&
> -            device->blitter->color_fixup_supported(&device->adapter->gl_info, This->resource.format_desc->color_fixup))
> +        if(This->resource.usage & WINED3DUSAGE_RENDERTARGET)
It's a problem with the existing code, but checking the usage here doesn't make much sense. It should check if the surface is a front buffer on any swapchain(or, as long as we store a P8 surface as ARGB in GL this code also applies to backbuffers)

More information about the wine-devel mailing list