Hi everyone,
I'd like to request a new feature for SFML: specifying core profile only context creation.
Lately I've ported my 'engine' to OGL 3.3 and it really annoyed me that with deprecated functions my application still compiles, and doesn't complain.
It gave me a few annoying problems concerning this, especially when I tried to pass things to shaders, and when I tried to render with deprecated VBO functions.
So I think it'd make everyone's life easier if one could specify that he only wants non-deprecated functions in his OGL context.
This context doesn't necessarily has to be a full OGL 4.1 context with every extension, because if we wanted extensions GLEW would solve the problem.
This feature can be found in Freeglut as well in which you have to use it something like this:
int main(int argc, char* argv[])
{
glutInit(&argc, argv);
glutInitContextVersion(4, 1);
glutInitContextFlags(GLUT_FORWARD_COMPATIBLE);
glutInitContextProfile(GLUT_CORE_PROFILE);
...
}
So it is extremely easy to use, and it makes your life a LOT easier.
Best regards,
Yours3lf