diff --git a/CharcoalBuiltin/TexturedBatch.h b/CharcoalBuiltin/TexturedBatch.h index b43f515..717eb3e 100644 --- a/CharcoalBuiltin/TexturedBatch.h +++ b/CharcoalBuiltin/TexturedBatch.h @@ -23,7 +23,7 @@ namespace charcoal glEnableVertexAttribArray(1); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex), (void*)offsetof(Vertex, position)); - glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex), (void*)offsetof(Vertex, uv)); + glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, sizeof(Vertex), (void*)offsetof(Vertex, uv)); glVertexAttribDivisor(0, 0); glVertexAttribDivisor(1, 0);