From a8d5ad2c1aca5d9b0550300ff4fcb81ed446682d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 8 Sep 2017 10:33:47 +0530 Subject: [PATCH] ... --- kitty/cell_vertex.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/cell_vertex.glsl b/kitty/cell_vertex.glsl index 2bd24f8c6..210e5274d 100644 --- a/kitty/cell_vertex.glsl +++ b/kitty/cell_vertex.glsl @@ -66,8 +66,8 @@ vec3 apply_selection(vec3 color, uint which) { void main() { uint instance_id = uint(gl_InstanceID); - uint r = instance_id / dimensions[0]; - uint c = instance_id - r * dimensions[0]; + uint r = instance_id / dimensions.x; + uint c = instance_id - r * dimensions.x; float left = steps[0] + c * steps[2]; float top = steps[1] - r * steps[3]; vec2 xpos = vec2(left, left + steps[2]);