From 1110f17581e6ef6215c15545dbf9b2fc9c3ca269 Mon Sep 17 00:00:00 2001 From: Philip Nilsson Date: Sat, 22 Mar 2008 18:28:52 +0100 Subject: [PATCH] wined3d: Initialize maxAttribs in case it isn't changed by glGetIntegerv. --- dlls/wined3d/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 616b28f37a3..355a5b6d965 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 */ -- 2.11.4.GIT