opengl/openglcontext: require support for RGBA16F framebuffers

It's effectively already required, this just checks it earlier
This commit is contained in:
Xaver Hugl 2024-01-12 15:19:25 +01:00
parent c59f385996
commit a89d1f8058

View file

@ -112,6 +112,7 @@ bool OpenGlContext::checkSupported() const
const bool supportsGLSL = m_isOpenglES || (hasOpenglExtension("GL_ARB_shader_objects") && hasOpenglExtension("GL_ARB_fragment_shader") && hasOpenglExtension("GL_ARB_vertex_shader"));
const bool supportsNonPowerOfTwoTextures = m_isOpenglES || hasOpenglExtension("GL_ARB_texture_non_power_of_two");
const bool supports3DTextures = !m_isOpenglES || hasVersion(Version(3, 0)) || hasOpenglExtension("GL_OES_texture_3D");
return supportsGLSL && supportsNonPowerOfTwoTextures && supports3DTextures;
const bool supports16FTextures = !m_isOpenglES || hasOpenglExtension("GL_EXT_color_buffer_half_float");
return supportsGLSL && supportsNonPowerOfTwoTextures && supports3DTextures && supports16FTextures;
}
}