From bef2aab862b83eec63ddfae460373aae280934b0 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 14 Apr 2017 14:19:40 +0200 Subject: [PATCH] Gawain: fix crash when drawing batches (e.g., scale manipulator) Introduced in b02786ae6b --- intern/gawain/src/batch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/gawain/src/batch.c b/intern/gawain/src/batch.c index 5de6335e0bb..d4465c7809a 100644 --- a/intern/gawain/src/batch.c +++ b/intern/gawain/src/batch.c @@ -14,7 +14,7 @@ #include // necessary functions from matrix API -extern void gpuBindMatrices(GLuint program); +extern void gpuBindMatrices(const ShaderInterface* shaderface); extern bool gpuMatricesDirty(void); // how best to use this here? Batch* Batch_create(PrimitiveType prim_type, VertexBuffer* verts, ElementList* elem) @@ -262,7 +262,7 @@ void Batch_draw(Batch* batch) Batch_use_program(batch); - gpuBindMatrices(batch->program); + gpuBindMatrices(batch->interface); if (batch->elem) {