Font::render(): bind buffer before setting vertex attribute pointer

This commit is contained in:
Josh Holtrop 2014-06-24 08:40:27 -04:00
parent 98a27bd20b
commit 89849c561a

View File

@ -23,8 +23,8 @@ namespace jes
{
glBindTexture(GL_TEXTURE_2D, m_texture_id);
glEnableVertexAttribArray(0);
glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, 0);
glBindBuffer(GL_ARRAY_BUFFER, m_vbo_id);
glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, 0);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
}
protected: