wined3d: Don't use drawStridedFast() when pointsize data is present.
Henri Verbeet
hverbeet at codeweavers.com
Fri Jan 23 03:22:33 CST 2009
---
dlls/wined3d/state.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index ce85403..54e9733 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -4277,10 +4277,11 @@ static void streamsrc(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCo
load_numbered = TRUE;
device->useDrawStridedSlow = FALSE;
}
- } else if (fixup || GL_SUPPORT(EXT_VERTEX_ARRAY_BGRA) ||
- (dataLocations->u.s.pSize.lpData == NULL &&
- dataLocations->u.s.diffuse.lpData == NULL &&
- dataLocations->u.s.specular.lpData == NULL)) {
+ } else if (fixup || (!dataLocations->u.s.pSize.lpData
+ && (GL_SUPPORT(EXT_VERTEX_ARRAY_BGRA)
+ || (!dataLocations->u.s.diffuse.lpData
+ && !dataLocations->u.s.specular.lpData))))
+ {
/* Load the vertex data using named arrays */
load_named = TRUE;
device->useDrawStridedSlow = FALSE;
--
1.6.0.6
--------------000207060703030805070102--
More information about the wine-patches
mailing list