Module: wine Branch: master Commit: 59c017c8bd3844f4bf638efc0062db3800975c07 URL: http://source.winehq.org/git/wine.git/?a=commit;h=59c017c8bd3844f4bf638efc00...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Aug 26 10:18:06 2009 +0200
wined3d: Properly check if an attribute is used in state_normalize().
---
dlls/wined3d/state.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index e6963c4..8ddfd28 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -1344,8 +1344,7 @@ static void state_normalize(DWORD state, IWineD3DStateBlockImpl *stateblock, str * by zero and is not properly defined in opengl, so avoid it */ if (stateblock->renderState[WINED3DRS_NORMALIZENORMALS] - && (stateblock->wineD3DDevice->strided_streams.elements[WINED3D_FFP_NORMAL].data - || stateblock->wineD3DDevice->strided_streams.elements[WINED3D_FFP_NORMAL].buffer_object)) + && (stateblock->wineD3DDevice->strided_streams.use_map & (1 << WINED3D_FFP_NORMAL))) { glEnable(GL_NORMALIZE); checkGLcall("glEnable(GL_NORMALIZE);");