From c3786f4c3383b4ac2862ed26d9f9e58bc5872859 Mon Sep 17 00:00:00 2001 From: Scorbutics Date: Thu, 20 Jun 2024 11:33:37 +0200 Subject: [PATCH] fix: "sf_sampler" must be "texture" in default shader --- src/SFML/Graphics/Shader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Graphics/Shader.cpp b/src/SFML/Graphics/Shader.cpp index 1bf67371ad..8b0c403d51 100644 --- a/src/SFML/Graphics/Shader.cpp +++ b/src/SFML/Graphics/Shader.cpp @@ -924,12 +924,12 @@ const Shader& Shader::getDefaultTexShader() "precision mediump float;" "varying vec4 sf_color;" "varying vec2 sf_texCoord;" - "uniform sampler2D sf_sampler;" + "uniform sampler2D texture;" "uniform mat4 sf_texture;" "void main()" "{" " vec4 coord = sf_texture * vec4(sf_texCoord, 0.0, 1.0);" - " gl_FragColor = texture2D(sf_sampler, coord.xy) * sf_color;" + " gl_FragColor = texture2D(texture, coord.xy) * sf_color;" "}" ); #else