mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-13 06:55:45 -04:00
GPU/OpenGL: Disable MSAA on GLES3.1
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user