X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=scene.h;h=81d00c3f5c94c06f15ea1be92e80fbb69038a42f;hb=6e29d444f89478d5965fc652373272e5d70e84e4;hp=cd1a8ea10689b5eb0c9303209b43dfa0b2c35ff3;hpb=a1056ed8198f0f5be0e0f341da8bd49aa6c47198;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/scene.h b/scene.h index cd1a8ea..81d00c3 100644 --- a/scene.h +++ b/scene.h @@ -247,7 +247,7 @@ VG_STATIC void scene_upload( scene *pscene, glmesh *mesh ) glEnableVertexAttribArray( 0 ); /* 1: normal */ - glVertexAttribPointer( 1, 3, GL_BYTE, GL_TRUE, + glVertexAttribPointer( 1, 4, GL_BYTE, GL_TRUE, stride, (void *)offsetof(scene_vert, norm) ); glEnableVertexAttribArray( 1 );