Module: wine Branch: master Commit: 48911d7a1c64ff735a791ac1f59429a5aebcd7ae URL: http://source.winehq.org/git/wine.git/?a=commit;h=48911d7a1c64ff735a791ac1f5...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Aug 22 21:02:43 2011 +0200
wined3d: Reject color blits on sysmem surfaces in ffp_blit_supported().
---
dlls/wined3d/surface.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 04a6dec..1cafe03 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -6325,6 +6325,9 @@ static BOOL ffp_blit_supported(const struct wined3d_gl_info *gl_info, enum wined switch (blit_op) { case WINED3D_BLIT_OP_COLOR_BLIT: + if (src_pool == WINED3DPOOL_SYSTEMMEM || dst_pool == WINED3DPOOL_SYSTEMMEM) + return FALSE; + src_fixup = get_complex_fixup(src_format->color_fixup); if (TRACE_ON(d3d_surface) && TRACE_ON(d3d)) {