From 5635d61927b2fc864d92f9f7b40cdb164eeab275 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 13 May 2020 11:48:22 +0200 Subject: Added model center translation --- src/gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gl.c') diff --git a/src/gl.c b/src/gl.c index 42308a1..a479147 100644 --- a/src/gl.c +++ b/src/gl.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/05/11 01:31:10 by charles #+# #+# */ -/* Updated: 2020/05/12 18:46:49 by charles ### ########.fr */ +/* Updated: 2020/05/13 09:24:08 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -40,7 +40,7 @@ int gl_state_init(t_gl_state *state, t_object *object) GL_CALL(glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(unsigned int) * object->indices_len, object->indices, GL_STATIC_DRAW)); - GL_CALL(glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(float) * 3, (void*)0)); + GL_CALL(glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, sizeof(float) * 4, (void*)0)); GL_CALL(glEnableVertexAttribArray(0)); return (0); } -- cgit