Browse Source

python: test gl.AbstractShaderProgram.set_uniform() as well.

pull/8/head
Vladimír Vondruš 7 years ago
parent
commit
7f82f76eba
  1. 4
      src/python/magnum/test/test_gl_gl.py

4
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):

Loading…
Cancel
Save