Matteo Bruni : wined3d: Don' t unnecessarily fallback to immediate mode for FFP draws with the PSIZE attribute.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 29 15:40:45 CDT 2015


Module: wine
Branch: master
Commit: a064797e0f0f789a03decb6205f49b5de9b16065
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a064797e0f0f789a03decb6205f49b5de9b16065

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Tue Jul 28 23:14:37 2015 +0200

wined3d: Don't unnecessarily fallback to immediate mode for FFP draws with the PSIZE attribute.

---

 dlls/wined3d/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 2fef379..32813e9 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2983,7 +2983,7 @@ static void context_update_stream_info(struct wined3d_context *context, const st
     }
     else
     {
-        WORD slow_mask = (1 << WINED3D_FFP_PSIZE);
+        WORD slow_mask = -!d3d_info->ffp_generic_attributes & (1 << WINED3D_FFP_PSIZE);
         slow_mask |= -!gl_info->supported[ARB_VERTEX_ARRAY_BGRA]
                 & ((1 << WINED3D_FFP_DIFFUSE) | (1 << WINED3D_FFP_SPECULAR));
 




More information about the wine-cvs mailing list