wined3d: Don't use drawStridedFast() for drawing pretransformed vertices.

Henri Verbeet hverbeet at codeweavers.com
Fri Jan 23 03:22:34 CST 2009


This was exposed by adding EXT_vertex_array_bgra support, previously we would
almost never hit this because color data being present would already prevent
us from using drawStridedFast(). Thanks to Stefan for spotting this.
---
 dlls/wined3d/state.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 54e9733..e1aeeab 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -4278,6 +4278,7 @@ static void streamsrc(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCo
             device->useDrawStridedSlow = FALSE;
         }
     } else if (fixup || (!dataLocations->u.s.pSize.lpData
+            && !dataLocations->position_transformed
             && (GL_SUPPORT(EXT_VERTEX_ARRAY_BGRA)
             || (!dataLocations->u.s.diffuse.lpData
             && !dataLocations->u.s.specular.lpData))))
-- 
1.6.0.6



--------------030702030806070903030906--



More information about the wine-patches mailing list