Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support geometry shaders when a OpenGL 3.2+ context is available #1769

Merged
merged 2 commits into from Mar 28, 2021

Conversation

binary1248
Copy link
Member

Implements/Fixes #1768.

How do you test this? Well... the hardest part is getting a system that doesn't advertise ARB_geometry_shader4 although it supports OpenGL 3.2+. Then just run the geometry shader example and see if anything shows up on the screen.

…dded version support defines to GLExtensions.hpp.
…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)
@machinehead-rus
Copy link

The shader example now works.
Screenshot from 2021-03-28 12-51-17

@eXpl0it3r eXpl0it3r added this to Discussion in SFML 2.6.0 via automation Mar 28, 2021
@eXpl0it3r eXpl0it3r added this to the 2.6 milestone Mar 28, 2021
@eXpl0it3r eXpl0it3r moved this from Discussion to Ready in SFML 2.6.0 Mar 28, 2021
@eXpl0it3r eXpl0it3r merged commit eaeb977 into master Mar 28, 2021
SFML 2.6.0 automation moved this from Ready to Done Mar 28, 2021
@eXpl0it3r eXpl0it3r deleted the feature/geometry_shader_3_2 branch March 28, 2021 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
SFML 2.6.0
  
Done
Development

Successfully merging this pull request may close these issues.

linux mesa driver and geometry shader
3 participants