Re: [PATCH 3/5] Move palette uploading code over to arbfp blit_shader.
2 Apr
2010
2 Apr
'10
10:57 a.m.
On 1 April 2010 23:58, Roderick Colenbrander <thunderbird2k(a)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?
5823
Age (days ago)
5823
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet