From 1a9f0a83b42b16f08044ee5d57206d1074fe57d6 Mon Sep 17 00:00:00 2001 From: vlj Date: Fri, 13 Jun 2014 13:41:07 +0200 Subject: [PATCH] Add bypassUBO for ColoredLine --- src/graphics/shaders.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/shaders.cpp b/src/graphics/shaders.cpp index 39f578b1d..3e2cb6224 100644 --- a/src/graphics/shaders.cpp +++ b/src/graphics/shaders.cpp @@ -415,6 +415,8 @@ namespace UtilShader void ColoredLine::setUniforms(const irr::video::SColor &col) { + if (UserConfigParams::m_ubo_disabled) + bypassUBO(Program); glUniform4i(uniform_color, col.getRed(), col.getGreen(), col.getBlue(), col.getAlpha()); glUniformMatrix4fv(glGetUniformLocation(Program, "ModelMatrix"), 1, GL_FALSE, core::IdentityMatrix.pointer()); }