From 90c18a92277a7493e6d9774b2d57fcae34939805 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 12 Jan 2017 23:48:38 +0530 Subject: [PATCH] ... --- kitty/char_grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/char_grid.py b/kitty/char_grid.py index f155b3f2b..d25a8d3de 100644 --- a/kitty/char_grid.py +++ b/kitty/char_grid.py @@ -73,7 +73,7 @@ void main() { uvec2 pos = pos_map[gl_VertexID]; gl_Position = vec4(xpos[pos[0]], ypos[pos[1]], 0, 1); - int sprite_id = int(instance_id) * STRIDE; + int sprite_id = gl_InstanceID * STRIDE; uvec4 spos = texelFetch(sprite_map, sprite_id); uvec4 colors = texelFetch(sprite_map, sprite_id + 1); sprite_pos = to_sprite_pos(pos, spos[0], spos[1], spos[2]);