summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/nvprogram.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-04-09 02:31:35 +0000
committerBrian Paul <[email protected]>2003-04-09 02:31:35 +0000
commitaac732546a235ca52b3236e3bceb493d77ba7326 (patch)
tree6938d6dc20030af93eaf1aac52c5478b00c940d3 /src/mesa/main/nvprogram.c
parentc708ac2afe2a03ed2323f3e078895fc0843c8976 (diff)
basic work on GL_ARB_vertex_buffer_object
Diffstat (limited to 'src/mesa/main/nvprogram.c')
-rw-r--r--src/mesa/main/nvprogram.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/nvprogram.c b/src/mesa/main/nvprogram.c
index fa125c40992..584b5ad40f8 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;