Changed the default OpenGL version from 4.6 to 3.3 when building for RetroDECK

This commit is contained in:
Leon Styhre 2023-04-28 21:00:03 +02:00
parent a3946352c5
commit 9a9ef0e97b

View file

@ -148,7 +148,7 @@ void RendererOpenGL::setup()
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
#else
#if defined(STEAM_DECK) || defined(RETRODECK)
#if defined(STEAM_DECK)
if (glVersion == "3.3") {
#else
if (glVersion == "" || glVersion == "3.3") {
@ -160,7 +160,7 @@ void RendererOpenGL::setup()
mMajorGLVersion = 4;
mMinorGLVersion = 2;
}
#if defined(STEAM_DECK) || defined(RETRODECK)
#if defined(STEAM_DECK)
else if (glVersion == "" || glVersion == "4.6") {
#else
else if (glVersion == "4.6") {
@ -170,7 +170,7 @@ void RendererOpenGL::setup()
}
else {
LOG(LogWarning) << "Unsupported OpenGL version \"" << glVersion
#if defined(STEAM_DECK) || defined(RETRODECK)
#if defined(STEAM_DECK)
<< "\" requested, defaulting to 4.6 (valid versions are 3.3, 4.2 and 4.6)";
mMajorGLVersion = 4;
mMinorGLVersion = 6;