diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-04-09 02:31:35 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-04-09 02:31:35 +0000 |
commit | aac732546a235ca52b3236e3bceb493d77ba7326 (patch) | |
tree | 6938d6dc20030af93eaf1aac52c5478b00c940d3 /src/mesa/main/nvprogram.c | |
parent | c708ac2afe2a03ed2323f3e078895fc0843c8976 (diff) |
basic work on GL_ARB_vertex_buffer_object
Diffstat (limited to 'src/mesa/main/nvprogram.c')
-rw-r--r-- | src/mesa/main/nvprogram.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/nvprogram.c b/src/mesa/main/nvprogram.c index fa125c4099..584b5ad40f 100644 --- a/src/mesa/main/nvprogram.c +++ b/src/mesa/main/nvprogram.c @@ -723,6 +723,13 @@ _mesa_GetVertexAttribivNV(GLuint index, GLenum pname, GLint *params) case GL_CURRENT_ATTRIB_NV: COPY_4V_CAST(params, ctx->Current.Attrib[index], GLint); break; + case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB: + if (!ctx->Extensions.ARB_vertex_buffer_object) { + _mesa_error(ctx, GL_INVALID_ENUM, "glGetVertexAttribdvNV"); + return; + } + params[0] = ctx->Array.VertexAttribArrayBufferBinding[index]; + break; default: _mesa_error(ctx, GL_INVALID_ENUM, "glGetVertexAttribdvNV"); return; |