From 0aae714d4d894a4bfa9582c71ee8a1778260a047 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 9 Jan 2017 19:06:36 -0500 Subject: ui menu cleanup --- src/ui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui.cpp') diff --git a/src/ui.cpp b/src/ui.cpp index 09a87bf..88a314c 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -275,11 +275,12 @@ namespace ui { // draw the character glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, (*ftex)[c - 33]); - glUniform1i(Render::textShader.uniform[WU_texture], 0); - glUniform4f(Render::textShader.uniform[WU_tex_color], 1.0f, 1.0f, 1.0f, 1.0f); Render::textShader.use(); Render::textShader.enable(); + + glUniform4f(Render::textShader.uniform[WU_tex_color], 1.0f, 1.0f, 1.0f, 1.0f); + GLfloat tex_coord[] = { 0.0, 1.0, //bottom left 1.0, 1.0, //bottom right -- cgit v1.2.3