Renderer/OpenGL: Enable GL_TEXTURE_CUBE_MAP_SEAMLESS

This commit is contained in:
Lynix
2018-04-21 00:28:57 +02:00
parent 9f74b71bd6
commit 52f80a68cb
4 changed files with 8 additions and 0 deletions

View File

@@ -163,6 +163,9 @@ namespace Nz
return false;
}
if (OpenGL::IsSupported(OpenGLExtension_SeamlessCubeMap))
glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS);
if (m_parameters.antialiasingLevel > 0)
glEnable(GL_MULTISAMPLE);

View File

@@ -1174,6 +1174,9 @@ namespace Nz
}
}
// Seamless Cubemap Filtering
s_openGLextensions[OpenGLExtension_SeamlessCubeMap] = (s_openglVersion >= 320 || IsSupported("GL_ARB_seamless_cube_map"));
// Shader_ImageLoadStore
s_openGLextensions[OpenGLExtension_Shader_ImageLoadStore] = (s_openglVersion >= 420 || IsSupported("GL_ARB_shader_image_load_store"));