Fixed potential crash-bug in the WGL_ARB_create_context path (missing 0 attribute).

This commit is contained in:
the_fiddler 2009-04-29 11:02:12 +00:00
parent 4335a458eb
commit 67d8b1f54c

View file

@ -104,6 +104,7 @@ namespace OpenTK.Platform.Windows
attributes.Add((int)ArbCreateContext.Flags); attributes.Add((int)ArbCreateContext.Flags);
attributes.Add((int)flags); attributes.Add((int)flags);
} }
attributes.Add(0);
renderContext = new ContextHandle( renderContext = new ContextHandle(
Wgl.Arb.CreateContextAttribs( Wgl.Arb.CreateContextAttribs(