Skip to content

Commit

Permalink
fix: "sf_sampler" must be "texture" in default shader
Browse files Browse the repository at this point in the history
  • Loading branch information
Scorbutics committed Jun 20, 2024
1 parent bf97b36 commit c3786f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SFML/Graphics/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3786f4

Please sign in to comment.