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 3c9ccedc9d
commit e5df36036b

View file

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