From 7f82f76ebaaa74f946014f006e4643996b932771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 15 Sep 2019 11:26:01 +0200 Subject: [PATCH] python: test gl.AbstractShaderProgram.set_uniform() as well. --- src/python/magnum/test/test_gl_gl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/python/magnum/test/test_gl_gl.py b/src/python/magnum/test/test_gl_gl.py index 2080506..52084ba 100644 --- a/src/python/magnum/test/test_gl_gl.py +++ b/src/python/magnum/test/test_gl_gl.py @@ -92,7 +92,9 @@ void main() { a.bind_attribute_location(0, "position") self.assertTrue(a.link()) - self.assertGreaterEqual(a.uniform_location("transformationProjectionMatrix"), 0) + location = a.uniform_location("transformationProjectionMatrix") + self.assertGreaterEqual(location, 0) + a.set_uniform(location, Matrix4()) class Buffer(GLTestCase): def test_init(self):