From 08128c14ec49a2b357e830c832ccd0a8e63c175d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 14 Jan 2024 11:38:09 +0000 Subject: Add traits wrapper for setting uniforms --- gfx/gl/uiShader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gfx/gl/uiShader.cpp') diff --git a/gfx/gl/uiShader.cpp b/gfx/gl/uiShader.cpp index dc4f4dc..cf53e2c 100644 --- a/gfx/gl/uiShader.cpp +++ b/gfx/gl/uiShader.cpp @@ -1,4 +1,5 @@ #include "uiShader.h" +#include "gl_traits.h" #include #include #include @@ -26,5 +27,5 @@ void UIShader::TextProgram::use(const RGB & colour) const { Program::use(); - glUniform3fv(colorLoc, 1, glm::value_ptr(colour)); + glUniform(colorLoc, colour); } -- cgit v1.2.3