mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 02:36:27 +01:00
Merge pull request #5189 from stenzek/gl-msaa
OGL: Fix MSAA being forced to 1x
This commit is contained in:
commit
587ed3213c
@ -580,6 +580,10 @@ Renderer::Renderer()
|
|||||||
g_Config.backend_info.bSupportsEarlyZ =
|
g_Config.backend_info.bSupportsEarlyZ =
|
||||||
g_ogl_config.bSupportsEarlyFragmentTests || g_ogl_config.bSupportsConservativeDepth;
|
g_ogl_config.bSupportsEarlyFragmentTests || g_ogl_config.bSupportsConservativeDepth;
|
||||||
|
|
||||||
|
glGetIntegerv(GL_MAX_SAMPLES, &g_ogl_config.max_samples);
|
||||||
|
if (g_ogl_config.max_samples < 1 || !g_ogl_config.bSupportsMSAA)
|
||||||
|
g_ogl_config.max_samples = 1;
|
||||||
|
|
||||||
if (g_ogl_config.bSupportsDebug)
|
if (g_ogl_config.bSupportsDebug)
|
||||||
{
|
{
|
||||||
if (GLExtensions::Supports("GL_KHR_debug"))
|
if (GLExtensions::Supports("GL_KHR_debug"))
|
||||||
|
@ -170,10 +170,6 @@ bool VideoBackend::FillBackendInfo()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
glGetIntegerv(GL_MAX_SAMPLES, &g_ogl_config.max_samples);
|
|
||||||
if (g_ogl_config.max_samples < 1 || !g_ogl_config.bSupportsMSAA)
|
|
||||||
g_ogl_config.max_samples = 1;
|
|
||||||
|
|
||||||
// TODO: Move the remaining fields from the Renderer constructor here.
|
// TODO: Move the remaining fields from the Renderer constructor here.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user