Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualChris528

Posted 05 July 2013 - 04:47 AM

You have to put thee three SDL_GL_SetAttributes before the context creation for them to be taken into account. Actually you create a GL context with default parameters, which is surely a forward compatible context.

This brings up another question, is the context supposed to be created before or after the creation of the window? It crashes at runtime when I try to create the context first. According to the sdl_video.h header, SDL_GL_SetAttribute should be used before window creation.


#3Chris528

Posted 05 July 2013 - 04:47 AM

You have to put thee three SDL_GL_SetAttributes before the context creation for them to be taken into account. Actually you create a GL context with default parameters, which is surely a forward compatible context.

This brings up another question, is the context supposed to be created before or after the creation of the window? It crashes at runtime when I try to create the context first According to the sdl_video.h header, SDL_GL_SetAttribute should be used before window creation.


#2Chris528

Posted 05 July 2013 - 04:45 AM

You have to put thee three SDL_GL_SetAttributes before the context creation for them to be taken into account. Actually you create a GL context with default parameters, which is surely a forward compatible context.

This brings up another question, is the context supposed to be created before or after the creation of the window? According to the sdl_video.h header, SDL_GL_SetAttribute should be used before window creation.


#1Chris528

Posted 05 July 2013 - 04:44 AM

You have to put thee three SDL_GL_SetAttributes before the context creation for them to be taken into account. Actually you create a GL context with default parameters, which is surely a forward compatible context.

This brings up another question, is the context creation supposed to be before or after the creation of the window? According to the sdl_video.h header, SDL_GL_SetAttribute should be used before window creation.


PARTNERS