summaryrefslogtreecommitdiff
path: root/src/mesa/main/nvprogram.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-06-10 14:56:40 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-06-10 14:56:40 +0000
commit66a83c9e175c948d1ed8dd860fba42b4cb42ee34 (patch)
treead4a73c3f9368743ce45050c9873cdcf0bcfd8eb /src/mesa/main/nvprogram.c
parent9a2121cfb66ac715273dd1fcc5eadc17ee05a73e (diff)
fix GL_CURRENT_VERTEX_ATTRIB_ARB queries
Diffstat (limited to 'src/mesa/main/nvprogram.c')
-rw-r--r--src/mesa/main/nvprogram.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/nvprogram.c b/src/mesa/main/nvprogram.c
index 68830c30e4..67f416dbc2 100644
--- a/src/mesa/main/nvprogram.c
+++ b/src/mesa/main/nvprogram.c
@@ -697,6 +697,7 @@ _mesa_GetVertexAttribdvNV(GLuint index, GLenum pname, GLdouble *params)
params[0] = ctx->Array.VertexAttrib[index].Type;
break;
case GL_CURRENT_ATTRIB_NV:
+ FLUSH_CURRENT(ctx, 0);
COPY_4V(params, ctx->Current.Attrib[index]);
break;
default:
@@ -732,6 +733,7 @@ _mesa_GetVertexAttribfvNV(GLuint index, GLenum pname, GLfloat *params)
params[0] = (GLfloat) ctx->Array.VertexAttrib[index].Type;
break;
case GL_CURRENT_ATTRIB_NV:
+ FLUSH_CURRENT(ctx, 0);
COPY_4V(params, ctx->Current.Attrib[index]);
break;
default:
@@ -767,6 +769,7 @@ _mesa_GetVertexAttribivNV(GLuint index, GLenum pname, GLint *params)
params[0] = ctx->Array.VertexAttrib[index].Type;
break;
case GL_CURRENT_ATTRIB_NV:
+ FLUSH_CURRENT(ctx, 0);
COPY_4V_CAST(params, ctx->Current.Attrib[index], GLint);
break;
case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB: