mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 13:45:34 +00:00
Add support for OpenGLES 3.2
This commit is contained in:
parent
4d633fd3e6
commit
b29476de58
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ void GraphicsWindowSDL2::init()
|
||||||
if (ver && strcmp(ver, "2") == 0) {
|
if (ver && strcmp(ver, "2") == 0) {
|
||||||
major = 2;
|
major = 2;
|
||||||
minor = 0;
|
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);
|
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
|
||||||
|
|
Loading…
Reference in a new issue