From 3684d22ef8c185ef2947fb0f16112130c11e5de0 Mon Sep 17 00:00:00 2001 From: hiker Date: Tue, 15 Jul 2014 16:09:57 +1000 Subject: [PATCH] Try to fix linux compilation. --- src/graphics/render_geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/render_geometry.cpp b/src/graphics/render_geometry.cpp index 44a7e81af..d0ac5f935 100644 --- a/src/graphics/render_geometry.cpp +++ b/src/graphics/render_geometry.cpp @@ -61,7 +61,7 @@ void apply_instance(const T *Shader, const std::tuple &arg) template void renderMeshes1stPass(const std::vector &TexUnits, std::vector > &meshes) { - glUseProgram(Shader::getInstance()->Program); + glUseProgram(Shader::getInstance()->Program); glBindVertexArray(getVAO(VertexType)); for (unsigned i = 0; i < meshes.size(); i++) { @@ -80,7 +80,7 @@ void renderMeshes1stPass(const std::vector &TexUnits, std::vector(), meshes[i]); + apply_instance(Shader::getInstance(), meshes[i]); } }