From eaeb9777005eab322f25f809966043feca937960 Mon Sep 17 00:00:00 2001 From: binary1248 Date: Sat, 27 Mar 2021 14:06:03 +0100 Subject: [PATCH] Relax the requirement to provide geometry shader support to accept a 3.2+ compatibility context as well. While the compatibility profile functionality is not 100% identical to the EXT/ARB functionality, the extent to which SFML makes use of geometry shaders should not pose any serious problems to a developer who is aware of the subtle differences. The current geometry shader example already requires GLSL 1.50 which was only available in OpenGL 3.2+. (Closes #1768) --- src/SFML/Graphics/Shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Shader.cpp b/src/SFML/Graphics/Shader.cpp index aba2a06e..ce1be3b8 100644 --- a/src/SFML/Graphics/Shader.cpp +++ b/src/SFML/Graphics/Shader.cpp @@ -815,7 +815,7 @@ bool Shader::isGeometryAvailable() // Make sure that extensions are initialized sf::priv::ensureExtensionsInit(); - available = isAvailable() && GLEXT_geometry_shader4; + available = isAvailable() && (GLEXT_geometry_shader4 || GLEXT_GL_VERSION_3_2); } return available;