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

@ -92,6 +92,7 @@ Nazara Engine:
- ⚠️ Translucent2D pipeline no longer has depth sorting
- Fixed SimpleTextDrawer line bounds
- ⚠️ Stream::ReadLine will now returns empty lines if present in the file
- Fixed cubemaps seams with OpenGL
Nazara Development Kit:
- Added ImageWidget (#139)

View File

@ -38,6 +38,7 @@ namespace Nz
OpenGLExtension_FP64,
OpenGLExtension_GetProgramBinary,
OpenGLExtension_SeparateShaderObjects,
OpenGLExtension_SeamlessCubeMap,
OpenGLExtension_Shader_ImageLoadStore,
OpenGLExtension_TextureCompression_s3tc,
OpenGLExtension_TextureStorage,

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"));