mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-26 11:39:47 +01:00
render/gles2: use .x/.y instead of .s/.t
texcoord is a vector of coordinates, with the first member being the X axis value and the second member being the Y axis value. It makes more sense to use the accessors with the same names.
This commit is contained in:
parent
d3d1bac1c2
commit
5118189a2b
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ const GLchar tex_vertex_src[] =
|
|||
"void main() {\n"
|
||||
" gl_Position = vec4(proj * vec3(pos, 1.0), 1.0);\n"
|
||||
" if (invert_y) {\n"
|
||||
" v_texcoord = vec2(texcoord.s, 1.0 - texcoord.t);\n"
|
||||
" v_texcoord = vec2(texcoord.x, 1.0 - texcoord.y);\n"
|
||||
" } else {\n"
|
||||
" v_texcoord = texcoord;\n"
|
||||
" }\n"
|
||||
|
|
Loading…
Reference in a new issue