sdl: use correct GL context version
This commit is contained in:
parent
5070880428
commit
b42c13fc1b
1 changed files with 2 additions and 1 deletions
|
|
@ -43,7 +43,8 @@ Window::Window(const std::shared_ptr<Renderer> &renderer,
|
|||
observer_(observer),
|
||||
native_display_(0),
|
||||
native_window_(0) {
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
|
||||
|
||||
// NOTE: We don't furce GL initialization of the window as this will
|
||||
// be take care of by the Renderer when we attach to it. On EGL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue