SDL: Support fullscreen on RPI (#1398)

Uses 24 a depth buffer if possible on OpenGL ES
This commit is contained in:
Laurent Merckx 2018-02-20 06:31:46 +01:00 committed by Bastien Bouclet
parent 43bc857b05
commit 8b015b65bd
4 changed files with 16 additions and 1 deletions

View file

@ -50,6 +50,7 @@ void Context::reset() {
packedDepthStencilSupported = false;
unpackSubImageSupported = false;
framebufferObjectMultisampleSupported = false;
OESDepth24 = false;
multisampleMaxSamples = -1;
}
@ -96,7 +97,10 @@ void Context::initialize(ContextType contextType) {
EXTFramebufferMultisample = true;
} else if (token == "GL_EXT_framebuffer_blit") {
EXTFramebufferBlit = true;
} else if (token == "GL_OES_depth24") {
OESDepth24 = true;
}
}
int glslVersion = getGLSLVersion();