Try commenting out this line:

SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG)


According to the opengl.org wiki this flag should not be used except in GL 3.0 and was made redundant in GL 3.1. The code snippet above is trying to set MAJOR.MINOR as GL 3.3.

I just had an issue on Linux with a blank screen. Commenting out this line resolved the issue.

Cheers,
stew

Many Thanks. I didn't even know that.

Reply via email to