From b42c13fc1b4012dcf93bc9671549db74cf499f10 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Mon, 14 May 2018 06:53:12 +0200 Subject: [PATCH] sdl: use correct GL context version --- src/anbox/platform/sdl/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/anbox/platform/sdl/window.cpp b/src/anbox/platform/sdl/window.cpp index c129d2b..1343d5b 100644 --- a/src/anbox/platform/sdl/window.cpp +++ b/src/anbox/platform/sdl/window.cpp @@ -43,7 +43,8 @@ Window::Window(const std::shared_ptr &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