Henri Verbeet : wined3d: Simplify checking if an attribute is used in loadNumberedArrays().
Alexandre Julliard
julliard at winehq.org
Fri Jan 9 09:52:15 CST 2009
Module: wine
Branch: master
Commit: 92488ca7c11f366678fe79cc771fb17b2641cd2e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=92488ca7c11f366678fe79cc771fb17b2641cd2e
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Jan 9 10:23:42 2009 +0100
wined3d: Simplify checking if an attribute is used in loadNumberedArrays().
---
dlls/wined3d/state.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 5c999b8..b054ee1 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -3900,7 +3900,7 @@ static inline void loadNumberedArrays(IWineD3DStateBlockImpl *stateblock,
stateblock->wineD3DDevice->instancedDraw = FALSE;
for (i = 0; i < MAX_ATTRIBS; i++) {
- if (!strided->u.input[i].VBO && !strided->u.input[i].lpData)
+ if (!(strided->use_map & (1 << i)))
{
if (context->numbered_array_mask & (1 << i)) unload_numbered_array(stateblock, context, i);
continue;
More information about the wine-cvs
mailing list