libkwineffects/openglcontext: require support for 3D textures

They will be used in the drm backend for ICC profiles.
This commit is contained in:
Xaver Hugl 2023-10-13 04:14:34 +02:00
parent 0429ec8053
commit 7d0a3dcd1e

View file

@ -111,6 +111,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");
return supportsGLSL && supportsNonPowerOfTwoTextures;
const bool supports3DTextures = !m_isOpenglES || hasVersion(Version(3, 0)) || hasOpenglExtension("GL_OES_texture_3D");
return supportsGLSL && supportsNonPowerOfTwoTextures && supports3DTextures;
}
}