mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
OpenGL: Check the list of supported AA modes instead of hardcoding
This commit is contained in:
parent
c63f0f37cd
commit
b246a634d4
7 changed files with 133 additions and 20 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue