diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2015-01-19 09:44:39 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2015-01-19 14:16:25 +0100 |
commit | 95bb75593af23f6b44ad16fed7ee1620773f0b83 (patch) | |
tree | 5a34e69ff1a21a3301e4bbef9917213489999039 | |
parent | 6da6cfe26213e1988fc5c592fb3b7e7253d8e6af (diff) |
fosphor/gl_font: Make sure to set GL_TEXTURE_ENV_MODE properly
GL_MODULATE is required and since it might be used in other mode for
other function, we need to set it explicitely.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r-- | lib/fosphor/gl_font.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fosphor/gl_font.c b/lib/fosphor/gl_font.c index 6ad0f4a..aa6d73f 100644 --- a/lib/fosphor/gl_font.c +++ b/lib/fosphor/gl_font.c @@ -469,6 +469,8 @@ glf_begin(const struct gl_font *glf, float fg_color[3]) glBindTexture(GL_TEXTURE_2D, glf->tex.id); + glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); + if (glf->flags & GLF_FLG_LCD) { glColor3f(1.0f, 1.0f, 1.0f); glBlendColor(fg_color[0], fg_color[1], fg_color[2], 0.0f); |