diff --git a/src/gl/gl3pipe.cpp b/src/gl/gl3pipe.cpp index 13919cd..8ba7b29 100644 --- a/src/gl/gl3pipe.cpp +++ b/src/gl/gl3pipe.cpp @@ -187,9 +187,9 @@ defaultInstanceCB(Geometry *geo, InstanceDataHeader *header, bool32 reinstance) a->type = GL_FLOAT; a->normalized = GL_FALSE; a->offset = stride; - stride += 12; a++; } + stride += 12; // Prelighting if(isPrelit){ @@ -198,9 +198,9 @@ defaultInstanceCB(Geometry *geo, InstanceDataHeader *header, bool32 reinstance) a->type = GL_UNSIGNED_BYTE; a->normalized = GL_TRUE; a->offset = stride; - stride += 4; a++; } + stride += 4; // Texture coordinates for(int32 n = 0; n < geo->numTexCoordSets; n++){ diff --git a/src/gl/gl3skin.cpp b/src/gl/gl3skin.cpp index 134cb76..85efe32 100644 --- a/src/gl/gl3skin.cpp +++ b/src/gl/gl3skin.cpp @@ -18,8 +18,6 @@ #include "rwgl3impl.h" -extern float *gVertexBuffer; - namespace rw { namespace gl3 { @@ -65,10 +63,10 @@ skinInstanceCB(Geometry *geo, InstanceDataHeader *header, bool32 reinstance) a->type = GL_FLOAT; a->normalized = GL_FALSE; a->offset = stride; - stride += 12; a++; } - + stride += 12; + // Prelighting if(isPrelit){ a->index = ATTRIB_COLOR; @@ -76,9 +74,9 @@ skinInstanceCB(Geometry *geo, InstanceDataHeader *header, bool32 reinstance) a->type = GL_UNSIGNED_BYTE; a->normalized = GL_TRUE; a->offset = stride; - stride += 4; a++; } + stride += 4; // Texture coordinates for(int32 n = 0; n < geo->numTexCoordSets; n++){