From 959cc0c2ef780c51409df198d67721769beea687 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 19 Jan 2016 08:56:55 -0500 Subject: [PATCH] lib/gamnit flat: set array_enabled at each draw MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/flat.nit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/gamnit/flat.nit b/lib/gamnit/flat.nit index eaa5ba8..3ed34fe 100644 --- a/lib/gamnit/flat.nit +++ b/lib/gamnit/flat.nit @@ -68,6 +68,10 @@ class Sprite glActiveTexture gl_TEXTURE0 glBindTexture(gl_TEXTURE_2D, texture.root.gl_texture) + simple_2d_program.translation.array_enabled = false + simple_2d_program.color.array_enabled = false + simple_2d_program.scale.array_enabled = false + simple_2d_program.translation.uniform(center.x, -center.y, center.z, 0.0) simple_2d_program.color.uniform(1.0, 1.0, 1.0, alpha) simple_2d_program.scale.uniform scale -- 1.7.9.5