Add error handling for SDL_GL_CreateContext