kwin: Don't require GL_ARB_shading_language_100
This version of GLSL is not supported in a core context.
This commit is contained in:
parent
5b80d8d513
commit
2b00beecd2
1 changed files with 6 additions and 8 deletions
|
@ -570,8 +570,7 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface)
|
|||
m_supportsGLSL = true;
|
||||
m_textureNPOT = true;
|
||||
#else
|
||||
m_supportsGLSL = m_extensions.contains("GL_ARB_shading_language_100") &&
|
||||
m_extensions.contains("GL_ARB_shader_objects") &&
|
||||
m_supportsGLSL = m_extensions.contains("GL_ARB_shader_objects") &&
|
||||
m_extensions.contains("GL_ARB_fragment_shader") &&
|
||||
m_extensions.contains("GL_ARB_vertex_shader");
|
||||
|
||||
|
@ -582,8 +581,7 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface)
|
|||
GLXContext ctx = glXGetCurrentContext();
|
||||
m_directRendering = glXIsDirect(display(), ctx);
|
||||
|
||||
m_supportsGLSL = m_extensions.contains("GL_ARB_shading_language_100") &&
|
||||
m_extensions.contains("GL_ARB_shader_objects") &&
|
||||
m_supportsGLSL = m_extensions.contains("GL_ARB_shader_objects") &&
|
||||
m_extensions.contains("GL_ARB_fragment_shader") &&
|
||||
m_extensions.contains("GL_ARB_vertex_shader");
|
||||
|
||||
|
|
Loading…
Reference in a new issue