summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLMain.cpp
diff options
context:
space:
mode:
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;
}