Roderick Colenbrander : wined3d: Make sure the format of the render target is P8 too.
Alexandre Julliard
julliard at winehq.org
Tue Nov 6 08:24:41 CST 2007
Module: wine
Branch: master
Commit: b3f7a5565a096dd709800738dfd669cb93d68b27
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b3f7a5565a096dd709800738dfd669cb93d68b27
Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date: Mon Nov 5 20:20:34 2007 +0100
wined3d: Make sure the format of the render target is P8 too.
---
dlls/wined3d/surface.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 3d22e42..4aa386f 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1407,7 +1407,7 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
if (device->render_targets && 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;
}
More information about the wine-cvs
mailing list