mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Improve check for "ShaderProgramBinary"
This commit is contained in:
parent
5d51242252
commit
0c6564f3c1
|
@ -408,17 +408,7 @@ bool ContextImpl::isSupported(graphics::SpecialFeatures _feature) const
|
||||||
case graphics::SpecialFeatures::ImageTextures:
|
case graphics::SpecialFeatures::ImageTextures:
|
||||||
return m_glInfo.imageTextures;
|
return m_glInfo.imageTextures;
|
||||||
case graphics::SpecialFeatures::ShaderProgramBinary:
|
case graphics::SpecialFeatures::ShaderProgramBinary:
|
||||||
{
|
return m_glInfo.shaderStorage;
|
||||||
GLint numBinaryFormats = 0;
|
|
||||||
#ifdef GL_NUM_PROGRAM_BINARY_FORMATS
|
|
||||||
glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &numBinaryFormats);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (m_glInfo.isGLESX)
|
|
||||||
return numBinaryFormats != 0 && Utils::isExtensionSupported(m_glInfo, "GL_OES_get_program_binary");
|
|
||||||
|
|
||||||
return numBinaryFormats != 0 && Utils::isExtensionSupported(m_glInfo, "GL_ARB_get_program_binary");
|
|
||||||
}
|
|
||||||
case graphics::SpecialFeatures::DepthFramebufferTextures:
|
case graphics::SpecialFeatures::DepthFramebufferTextures:
|
||||||
if (!m_glInfo.isGLES2 || Utils::isExtensionSupported(m_glInfo, "GL_OES_depth_texture"))
|
if (!m_glInfo.isGLES2 || Utils::isExtensionSupported(m_glInfo, "GL_OES_depth_texture"))
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user