diff --git a/libkwineffects/kwinglplatform.cpp b/libkwineffects/kwinglplatform.cpp index 49758dd732..2b7b9a4c47 100644 --- a/libkwineffects/kwinglplatform.cpp +++ b/libkwineffects/kwinglplatform.cpp @@ -631,18 +631,10 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface) m_mesaVersion = parseVersionString(version); } - if (platformInterface == EglPlatformInterface) { - if (isGLES()) { - m_supportsGLSL = true; - m_textureNPOT = true; - } else { - m_supportsGLSL = m_extensions.contains("GL_ARB_shader_objects") && - m_extensions.contains("GL_ARB_fragment_shader") && - m_extensions.contains("GL_ARB_vertex_shader"); - - m_textureNPOT = m_extensions.contains("GL_ARB_texture_non_power_of_two"); - } - } else if (platformInterface == GlxPlatformInterface) { + if (isGLES()) { + m_supportsGLSL = true; + m_textureNPOT = true; + } else { m_supportsGLSL = m_extensions.contains("GL_ARB_shader_objects") && m_extensions.contains("GL_ARB_fragment_shader") && m_extensions.contains("GL_ARB_vertex_shader");