wined3d: Initialize maxAttribs in case it isn't changed by glGetIntegerv.

This commit is contained in:
Philip Nilsson 2008-03-22 18:28:52 +01:00 committed by Alexandre Julliard
parent b83fbb4f03
commit 1110f17581
1 changed files with 1 additions and 1 deletions

View File

@ -3003,7 +3003,7 @@ static inline void unloadVertexData(IWineD3DStateBlockImpl *stateblock) {
*/ */
static inline void unloadNumberedArrays(IWineD3DStateBlockImpl *stateblock) { static inline void unloadNumberedArrays(IWineD3DStateBlockImpl *stateblock) {
/* disable any attribs (this is the same for both GLSL and ARB modes) */ /* disable any attribs (this is the same for both GLSL and ARB modes) */
GLint maxAttribs; GLint maxAttribs = 16;
int i; int i;
/* Leave all the attribs disabled */ /* Leave all the attribs disabled */