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)