From b29476de58be8902fbef7c33655fe28bff789fac Mon Sep 17 00:00:00 2001 From: terrabyte25 <23338617+terabyte25@users.noreply.github.com> Date: Mon, 15 Apr 2019 17:09:36 -0500 Subject: [PATCH] Add support for OpenGLES 3.2 --- components/sdlutil/sdlgraphicswindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/sdlutil/sdlgraphicswindow.cpp b/components/sdlutil/sdlgraphicswindow.cpp index 3b76e6887..ad8454b25 100644 --- a/components/sdlutil/sdlgraphicswindow.cpp +++ b/components/sdlutil/sdlgraphicswindow.cpp @@ -99,6 +99,9 @@ void GraphicsWindowSDL2::init() if (ver && strcmp(ver, "2") == 0) { major = 2; minor = 0; + } else if (ver && strcmp(ver, "3") == 0) { + major = 3; + minor = 2; } SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);