GPU/OpenGL: Disable MSAA on GLES3.1

This commit is contained in:
Connor McLaughlin 2021-06-20 13:10:15 +10:00
parent 1fe85a0d91
commit 1644a0762d

View file

@ -305,14 +305,14 @@ void GPU_HW_OpenGL::SetCapabilities(HostDisplay* host_display)
m_max_resolution_scale = static_cast<u32>(max_texture_size / VRAM_WIDTH);
m_max_multisamples = 1;
if (GLAD_GL_ARB_texture_storage || GLAD_GL_ES_VERSION_3_1)
if (GLAD_GL_ARB_texture_storage || GLAD_GL_ES_VERSION_3_2)
{
glGetIntegerv(GL_MAX_SAMPLES, reinterpret_cast<GLint*>(&m_max_multisamples));
if (m_max_multisamples == 0)
m_max_multisamples = 1;
}
m_supports_per_sample_shading = GLAD_GL_ARB_sample_shading;
m_supports_per_sample_shading = GLAD_GL_VERSION_4_0 || GLAD_GL_ES_VERSION_3_2 || GLAD_GL_ARB_sample_shading;
Log_InfoPrintf("Per-sample shading: %s", m_supports_per_sample_shading ? "supported" : "not supported");
Log_InfoPrintf("Max multisamples: %u", m_max_multisamples);