Where is your call to SDL_SetVideoMode(SDL_OPENGL) ?
"When you die, if you get a choice between going to regular heaven or pie heaven, choose pie heaven. It might be a trick, but if it's not, mmmmmmm, boy." How to Ask Questions the Smart Way.
It comes after the code I posted. I moved the opengl code after setVideoMode() and now glGenBuffers returns 1. GL_VERSION is 2.1.2. Thank you very much for your fast replys, now I can sleep well :)
"When you die, if you get a choice between going to regular heaven or pie heaven, choose pie heaven. It might be a trick, but if it's not, mmmmmmm, boy." How to Ask Questions the Smart Way.