OpenGLRenderer: Fix depth clamping not being reported as supported
This commit is contained in:
parent
552dfbc01e
commit
06b442ab58
|
|
@ -50,12 +50,14 @@ namespace Nz
|
||||||
m_deviceInfo.type = RenderDeviceType::Unknown;
|
m_deviceInfo.type = RenderDeviceType::Unknown;
|
||||||
|
|
||||||
const GL::ContextParams& params = m_referenceContext->GetParams();
|
const GL::ContextParams& params = m_referenceContext->GetParams();
|
||||||
unsigned int glVersion = params.glMajorVersion * 100 + params.glMinorVersion;
|
|
||||||
|
|
||||||
// Features
|
// Features
|
||||||
if ((params.type == GL::ContextType::OpenGL && glVersion >= 460) || m_referenceContext->IsExtensionSupported(GL::Extension::TextureFilterAnisotropic))
|
if (m_referenceContext->IsExtensionSupported(GL::Extension::TextureFilterAnisotropic))
|
||||||
m_deviceInfo.features.anisotropicFiltering = true;
|
m_deviceInfo.features.anisotropicFiltering = true;
|
||||||
|
|
||||||
|
if (m_referenceContext->IsExtensionSupported(GL::Extension::DepthClamp))
|
||||||
|
m_deviceInfo.features.depthClamping = true;
|
||||||
|
|
||||||
if (m_referenceContext->glPolygonMode) //< not supported in core OpenGL ES, but supported in OpenGL or with GL_NV_polygon_mode extension
|
if (m_referenceContext->glPolygonMode) //< not supported in core OpenGL ES, but supported in OpenGL or with GL_NV_polygon_mode extension
|
||||||
m_deviceInfo.features.nonSolidFaceFilling = true;
|
m_deviceInfo.features.nonSolidFaceFilling = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue