mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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:
parent
4fcef893c9
commit
eaeb977700
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user