1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +00:00

Merge branch 'patch-2' into 'master'

Add support for OpenGLES 3.2

See merge request OpenMW/openmw!93
This commit is contained in:
Andrei Kortunov 2019-04-24 17:03:10 +00:00
commit 7941fd6780

View File

@ -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);