diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-01-09 19:06:36 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-01-09 19:06:36 -0500 |
commit | 0aae714d4d894a4bfa9582c71ee8a1778260a047 (patch) | |
tree | 0bdda17698baaa7cd3bd7325c6a310e917166e99 /src/ui.cpp | |
parent | 9d7b4c9a40261b5b6b961f6ca6174fd23c40f6b8 (diff) |
ui menu cleanup
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |