rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

Fixes text not displaying in GLES3 #86

Closed andystanton closed 9 years ago

andystanton commented 9 years ago

Currently text is not displayed when using GLES3. This is because the call to glTexImage2D is incorrect: GL_LUMINANCE is used for GLES2 and GL_RED for GLES3. According to the documentation for this function in GLES 3, GL_LUMINANCE should be used.

This condition was added by my PR (https://github.com/rougier/freetype-gl/pull/80) but only covered GLES2.

rougier commented 9 years ago

Thanks.