I tried to draw a simple 2D OpenGL text and this line https://github.com/rougier/freetype-gl/blob/master/vertex-buffer.c#L396 (glDisableVertexAttribArray( attribute->index );) fails with GL_INVALID_VALUE because index=-1.
This attribute index is hardcoded to be bound to the shader program in https://github.com/rougier/freetype-gl/blob/master/text-buffer.c#L29 (vertex_buffer_new("vertex:3f,tex_coord:2f,color:4f,ashift:1f,agamma:1f" )) but this leaves this index=-1 without such program.
It should be possible to render text without any shading program.
I tried to draw a simple 2D OpenGL text and this line https://github.com/rougier/freetype-gl/blob/master/vertex-buffer.c#L396 (
glDisableVertexAttribArray( attribute->index );) fails withGL_INVALID_VALUEbecauseindex=-1.This attribute index is hardcoded to be bound to the shader program in https://github.com/rougier/freetype-gl/blob/master/text-buffer.c#L29 (
vertex_buffer_new("vertex:3f,tex_coord:2f,color:4f,ashift:1f,agamma:1f" )) but this leaves thisindex=-1without such program.It should be possible to render text without any shading program.