From 89849c561ada2267f53c5499397a7c12d45b7468 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 24 Jun 2014 08:40:27 -0400 Subject: [PATCH] Font::render(): bind buffer before setting vertex attribute pointer --- src/gui/Font.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/Font.h b/src/gui/Font.h index c0e9c81..2483aeb 100644 --- a/src/gui/Font.h +++ b/src/gui/Font.h @@ -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: