Changes in Wgl version 1.0.0.5
Submitted by Chris on May 2, 2008 - 1:42am.
Hi, the overloads for wglChoosePixelFormatARB appear to have changed in 2.1, but the documentation is now out of date. I'm trying to call the method with a valid device context and a set of attribute arrays, but now it's throwing null reference exceptions I'm having difficulty tracing.
bool valid;
int[] newPixelFormats = new int[8];
uint[] numFormats = new uint[1];
float[] fAttributes = new float[] { 0, 0 };
int[] iAttributes = new int[] { /* attribs */ }
valid = Wgl.wglChoosePixelFormatARB( mDeviceContext, iAttributes, fAttributes, 8, newPixelFormats, numFormats );
Does anybody know anything about this / have any suggestions of what might be wrong?

Probably the wgl extensions
Probably the wgl extensions aren't properly loaded, try calling WGl.ReloadFunctions( ?? or something like it) just after you created the context;
----------------------
Download Tao svn snapshot build
Experimental Tao rpms (OpenSUSE Build Service)
Yeah, I tried that,
Yeah, I tried that, unfortunately it was no solution. I really have no idea at what level the null reference is occurring, but it's suspicious because the API changed to remove a method pointer.
I may have to build the library myself and step through it to find out where the exception is actually occurring, but I was hoping to avoid that.