[PATCH 03/10] wined3d: Reject color blits on sysmem surfaces in ffp_blit_supported().

Henri Verbeet hverbeet at codeweavers.com
Mon Aug 22 14:02:43 CDT 2011


---
 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))
             {
-- 
1.7.3.4




More information about the wine-patches mailing list