Subject of the issue
From commit 4fcef89 onwards the following error appears in the terminal, presumably only on nvidia cards
OpenGL extension SGIS_texture_edge_clamp unavailable
Artifacts may occur along texture edges
Ensure that hardware acceleration is enabled if available
Your environment
- nvidia 3080 GPU, Ubuntu 20.04 (driver 460.39) and Windows 10 (driver 461.33)
- GCC 9.3.0, Visual Studio 2019
Steps to reproduce
Any program making use of a texture
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
sf::RenderTexture T;
T.create(200, 200);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
T.clear();
T.draw(shape);
T.display();
sf::Sprite spr;
spr.setTexture(T.getTexture());
window.clear();
window.draw(spr);
window.display();
}
return 0;
}
I managed to get the error to go away by changing line 11988 in https://github.com/SFML/SFML/blob/master/extlibs/headers/glad/include/glad/gl.h from
SF_GLAD_GL_SGIS_texture_edge_clamp = sf_glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_SGIS_texture_edge_clamp");
to it's old value
SF_GLAD_GL_SGIS_texture_edge_clamp = sf_glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_SGIS_texture_edge_clamp") | sf_glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_EXT_texture_edge_clamp");
It looks like this an issue in the past which I'm assuming was manually fixed, #880. I'm assuming that when this file was regenerated the fix didn't get carried over.
Subject of the issue
From commit 4fcef89 onwards the following error appears in the terminal, presumably only on nvidia cards
OpenGL extension SGIS_texture_edge_clamp unavailable
Artifacts may occur along texture edges
Ensure that hardware acceleration is enabled if available
Your environment
Steps to reproduce
Any program making use of a texture
I managed to get the error to go away by changing line 11988 in https://github.com/SFML/SFML/blob/master/extlibs/headers/glad/include/glad/gl.h from
SF_GLAD_GL_SGIS_texture_edge_clamp = sf_glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_SGIS_texture_edge_clamp");to it's old value
It looks like this an issue in the past which I'm assuming was manually fixed, #880. I'm assuming that when this file was regenerated the fix didn't get carried over.