1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Fix warning about inconsistent types in shader

This commit is contained in:
David Hotham 2019-04-06 21:36:49 +01:00 committed by Christian Duerr
parent f0dbfc9b9c
commit 4cfb17529d

View file

@ -45,8 +45,8 @@ void main()
// Compute vertex corner position // Compute vertex corner position
vec2 position; vec2 position;
position.x = (gl_VertexID == 0 || gl_VertexID == 1) ? 1. : 0; position.x = (gl_VertexID == 0 || gl_VertexID == 1) ? 1. : 0.;
position.y = (gl_VertexID == 0 || gl_VertexID == 3) ? 0. : 1; position.y = (gl_VertexID == 0 || gl_VertexID == 3) ? 0. : 1.;
// Position of cell from top-left // Position of cell from top-left
vec2 cellPosition = cellDim * gridCoords; vec2 cellPosition = cellDim * gridCoords;