Gawain: fix crash when drawing batches (e.g., scale manipulator)

Introduced in b02786ae6b
This commit is contained in:
Dalai Felinto
2017-04-14 14:19:40 +02:00
parent 95b3632112
commit bef2aab862

View File

@@ -14,7 +14,7 @@
#include <stdlib.h>
// 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)
{