X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=scene.h;fp=scene.h;h=81d00c3f5c94c06f15ea1be92e80fbb69038a42f;hb=dd5c7c307f156768189af84603ec6f1f3b887bb4;hp=cd1a8ea10689b5eb0c9303209b43dfa0b2c35ff3;hpb=1cc9e11790a81a4a5e3e4797afca35fc2eaa8c69;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 );