if (!wglChoosePixelFormatARB(mGlewDC,
attribs,
fattribs,
0,
NULL,
&numFormats) || numFormats == 0)
Then I tried it in a mostly-working Windows Vista build environment, and it failed a few lines earlier:
if (!WGLEW_ARB_pixel_format || !WGLEW_ARB_pbuffer)
Seing how Linux support is much less important for the project at this point, I forgot about Linux and went on working with Vista. That’s when I figured out that ARB_pixel_format and ARB_pbuffer are not supported on that platform. I assumed it’s because my card is obsolete.
Turns out it wasn’t my card’s fault, it was the fault of the Vista drivers for my card. Cause now that I got fed up with Vista bugs and set up a Mozilla built environment on XP, it turns out on XP I have the same problem I’ve seen on Linux weeks ago.
Another interesting note is that on XP my Radeon 9250 supports all of OpenGL 1.0, 1.2, 1.3; and almost all of 1.4 and 1.5. On Vista it supports all of 1.0 and none of anything else. We’ll see if the situation changes when I get the new cards.
Anyway, I’m back to where I started, but it’s not quite as bad as it sounds, since I gained quite bit of knowledge on the way.
