1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Check for GL_MAX_SAMPLES

This commit is contained in:
Sergey Lipskiy 2016-11-13 11:39:57 +07:00
parent 263ddf4baa
commit 47c815b431

View File

@ -2078,6 +2078,12 @@ void OGLRender::_initExtensions()
assert(majorVersion >= 3 && "Plugin requires GL version 3 or higher.");
#endif
#ifdef GL_MULTISAMPLING_SUPPORT
GLint max_samples = 0;
glGetIntegerv(GL_MAX_SAMPLES, &max_samples);
config.video.multisampling = min(config.video.multisampling, (u32)max_samples);
#endif
#ifdef GL_IMAGE_TEXTURES_SUPPORT
GLint minorVersion = 0;
glGetIntegerv(GL_MINOR_VERSION, &minorVersion);