diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-11 18:47:51 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-11 18:47:51 +0000 |
commit | 196a90b5111b5170b9517d83e24d454363a09dd5 (patch) | |
tree | 41d0b3fdf5d42e6d9c66ff944bc0a2be996ca448 /src/mesa | |
parent | 5c08c5bff3178c1f5b8e8b3d891daa2eaa0be9be (diff) | |
download | external_mesa3d-196a90b5111b5170b9517d83e24d454363a09dd5.zip external_mesa3d-196a90b5111b5170b9517d83e24d454363a09dd5.tar.gz external_mesa3d-196a90b5111b5170b9517d83e24d454363a09dd5.tar.bz2 |
added missing types to _mesa_VertexAttribPointerARB()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/varray.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 5752a42..0251e89 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -527,13 +527,26 @@ _mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type, } /* check for valid 'type' and compute StrideB right away */ + /* NOTE: more types are supported here than in the NV extension */ switch (type) { + case GL_BYTE: + ctx->Array.VertexAttrib[index].StrideB = size * sizeof(GLbyte); + break; case GL_UNSIGNED_BYTE: ctx->Array.VertexAttrib[index].StrideB = size * sizeof(GLubyte); break; case GL_SHORT: ctx->Array.VertexAttrib[index].StrideB = size * sizeof(GLshort); break; + case GL_UNSIGNED_SHORT: + ctx->Array.VertexAttrib[index].StrideB = size * sizeof(GLushort); + break; + case GL_INT: + ctx->Array.VertexAttrib[index].StrideB = size * sizeof(GLint); + break; + case GL_UNSIGNED_INT: + ctx->Array.VertexAttrib[index].StrideB = size * sizeof(GLuint); + break; case GL_FLOAT: ctx->Array.VertexAttrib[index].StrideB = size * sizeof(GLfloat); break; |