wined3d: Make sure the format of the render target is P8 too.

This commit is contained in:
Roderick Colenbrander 2007-11-05 20:20:34 +01:00 committed by Alexandre Julliard
parent df892ff67d
commit b3f7a5565a
1 changed files with 1 additions and 1 deletions

View File

@ -1407,7 +1407,7 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
if (device->render_targets && device->render_targets[0]) { if (device->render_targets && device->render_targets[0]) {
IWineD3DSurfaceImpl* render_target = (IWineD3DSurfaceImpl*)device->render_targets[0]; IWineD3DSurfaceImpl* render_target = (IWineD3DSurfaceImpl*)device->render_targets[0];
if(render_target->resource.usage & WINED3DUSAGE_RENDERTARGET) if((render_target->resource.usage & WINED3DUSAGE_RENDERTARGET) && (render_target->resource.format == WINED3DFMT_P8))
p8_render_target = TRUE; p8_render_target = TRUE;
} }