OpenGL font rendering using Freetype2

后端 未结 1 960
余生分开走
余生分开走 2020-12-11 03:16

I\'m trying to render a freetype font using OpenGL, following the example posted at http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Text_Rendering_02.

相关标签:
1条回答
  • 2020-12-11 04:03

    Managed to solve the problem, instead of glActiveTexture(GL_TEXTURE0 + texture); it should have only been glActiveTexture(GL_TEXTURE0);

    I'm assuming glActiveTexture binds to a specific index within a program and not for all textures.

    0 讨论(0)
提交回复
热议问题