[PATCH 3/5] Move palette uploading code over to arbfp blit_shader.

Henri Verbeet hverbeet at gmail.com
Fri Apr 2 04:57:44 CDT 2010


On 1 April 2010 23:58, Roderick Colenbrander <thunderbird2k at gmail.com> wrote:
>
> +static void upload_palette(IWineD3DSurfaceImpl *surface)
> +{
> +    BYTE table[256][4];
> +    IWineD3DDeviceImpl *device = surface->resource.device;
> +    BOOL colorkey = (surface->CKeyFlags & WINEDDSD_CKSRCBLT) ? TRUE : FALSE;
> +
> +    d3dfmt_p8_init_palette(surface, table, colorkey);
If that's really what you want, you need to add this function to
wined3d_private.h. Right now it will generate a warning. Perhaps it
should just be in surface.c though? This function depends on having an
active context. Where is "palette_texture" deleted?



More information about the wine-devel mailing list