Module: wine Branch: master Commit: 1110f17581e6ef6215c15545dbf9b2fc9c3ca269 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1110f17581e6ef6215c15545db...
Author: Philip Nilsson pnilsson@nullref.se Date: Sat Mar 22 18:28:52 2008 +0100
wined3d: Initialize maxAttribs in case it isn't changed by glGetIntegerv.
---
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 616b28f..355a5b6 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -3003,7 +3003,7 @@ static inline void unloadVertexData(IWineD3DStateBlockImpl *stateblock) { */ static inline void unloadNumberedArrays(IWineD3DStateBlockImpl *stateblock) { /* disable any attribs (this is the same for both GLSL and ARB modes) */ - GLint maxAttribs; + GLint maxAttribs = 16; int i;
/* Leave all the attribs disabled */