diff options
author | David Hotham <david.hotham@metaswitch.com> | 2019-04-06 21:36:49 +0100 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-04-06 22:36:49 +0200 |
commit | 4cfb17529d2d64534c4ed7d13879e4fcaa70bb91 (patch) | |
tree | 8886c8afffc2b8f4f6e5e0d3bda752b266f5561c | |
parent | f0dbfc9b9c6514bc60e271bb74c2970e645d998f (diff) | |
download | alacritty-4cfb17529d2d64534c4ed7d13879e4fcaa70bb91.tar.gz alacritty-4cfb17529d2d64534c4ed7d13879e4fcaa70bb91.zip |
Fix warning about inconsistent types in shader
-rw-r--r-- | res/text.v.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/text.v.glsl b/res/text.v.glsl index 369e7c7e..5189980f 100644 --- a/res/text.v.glsl +++ b/res/text.v.glsl @@ -45,8 +45,8 @@ void main() // Compute vertex corner position vec2 position; - position.x = (gl_VertexID == 0 || gl_VertexID == 1) ? 1. : 0; - position.y = (gl_VertexID == 0 || gl_VertexID == 3) ? 0. : 1; + position.x = (gl_VertexID == 0 || gl_VertexID == 1) ? 1. : 0.; + position.y = (gl_VertexID == 0 || gl_VertexID == 3) ? 0. : 1.; // Position of cell from top-left vec2 cellPosition = cellDim * gridCoords; |