fix font texture switching
This commit is contained in:
parent
c9c58ca410
commit
988c36a50a
2 changed files with 4 additions and 1 deletions
|
|
@ -446,6 +446,7 @@ static int ren_draw_font_stack(int idx)
|
|||
{
|
||||
GL(glUseProgram(ren.font_prog))
|
||||
GL(glBindBuffer(GL_ARRAY_BUFFER, ren.font_buffer))
|
||||
GL(glBindTexture(GL_TEXTURE_RECTANGLE, ren.fonts[idx].texture))
|
||||
|
||||
GL(glViewport(0, 0, ren.width, ren.height))
|
||||
// this has caused me some trouble, convert from image coordiates to viewport
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue