summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLMain.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2023-03-19 22:20:34 -0700
committerPokechu22 <Pokechu022@gmail.com>2023-06-08 22:07:41 -0700
commitb246a634d42bc50d5b3ba1c97891e195c37293fe (patch)
tree5cb87f33d488dc7f09d4c9bb33df0347cd9ebf29 /Source/Core/VideoBackends/OGL/OGLMain.cpp
parentc63f0f37cd84d627dd40ace3205c689efc068ac0 (diff)
OpenGL: Check the list of supported AA modes instead of hardcoding
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLMain.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLMain.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLMain.cpp b/Source/Core/VideoBackends/OGL/OGLMain.cpp
index ef25e40a2a..13f47a054f 100644
--- a/Source/Core/VideoBackends/OGL/OGLMain.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLMain.cpp
@@ -142,7 +142,7 @@ bool VideoBackend::FillBackendInfo(GLContext* context)
g_Config.backend_info.bSupportsGPUTextureDecoding = true;
g_Config.backend_info.bSupportsBBox = true;
- // Overwritten in OGLRender.cpp later
+ // Overwritten in OGLConfig.cpp later
g_Config.backend_info.bSupportsDualSourceBlend = true;
g_Config.backend_info.bSupportsPrimitiveRestart = true;
g_Config.backend_info.bSupportsPaletteConversion = true;
@@ -182,6 +182,13 @@ bool VideoBackend::FillBackendInfo(GLContext* context)
return false;
}
+ if (!PopulateConfig(context))
+ {
+ // Not all needed extensions are supported, so we have to stop here.
+ // Else some of the next calls might crash.
+ return false;
+ }
+
// TODO: Move the remaining fields from the Renderer constructor here.
return true;
}