This commit is contained in:
Themaister 2011-03-20 02:13:44 +01:00
parent f77fe62ab0
commit 027a21278e

View File

@ -477,11 +477,11 @@ static void gl_render_msg(gl_t *gl, const char *msg)
if (!gl->font)
return;
set_viewport(gl, gl->win_width, gl->win_height, false);
GLfloat font_vertex[8];
// Deactivate custom shaders. Enable the font texture.
gl_shader_use(0);
set_viewport(gl, gl->win_width, gl->win_height, false);
glBindTexture(GL_TEXTURE_2D, gl->font_tex);
glVertexPointer(2, GL_FLOAT, 2 * sizeof(GLfloat), font_vertex);
glTexCoordPointer(2, GL_FLOAT, 2 * sizeof(GLfloat), tex_coords); // Use the static one (uses whole texture).