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)

This commit is contained in:
binary1248 2021-03-27 14:06:03 +01:00 committed by Lukas Dürrenberger
parent 4fcef893c9
commit eaeb977700

View File

@ -815,7 +815,7 @@ bool Shader::isGeometryAvailable()
// Make sure that extensions are initialized // Make sure that extensions are initialized
sf::priv::ensureExtensionsInit(); sf::priv::ensureExtensionsInit();
available = isAvailable() && GLEXT_geometry_shader4; available = isAvailable() && (GLEXT_geometry_shader4 || GLEXT_GL_VERSION_3_2);
} }
return available; return available;