diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-04-01 18:27:07 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-04-01 18:27:07 +0000 |
commit | 4b28b5a885078dc4c8274a26c263c6586166e2e3 (patch) | |
tree | 1649a43acedb549a962a8c696e8b6703a22b41c4 /src/mesa/main | |
parent | 97bc3d7e78926ada206511dae2381468c608865c (diff) |
GL_SECONDARY_COLOR_ARRAY_SIZE_EXT query was returning stride
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/get.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 996f712ca2..68508c7738 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1,4 +1,4 @@ -/* $Id: get.c,v 1.108 2003/04/01 18:22:23 brianp Exp $ */ +/* $Id: get.c,v 1.109 2003/04/01 18:27:07 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1265,7 +1265,7 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) break; case GL_SECONDARY_COLOR_ARRAY_SIZE_EXT: CHECK_EXTENSION_B(EXT_secondary_color, pname); - *params = INT_TO_BOOL(ctx->Array.SecondaryColor.Stride); + *params = INT_TO_BOOL(ctx->Array.SecondaryColor.Size); break; /* GL_EXT_fog_coord */ @@ -2673,7 +2673,7 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) break; case GL_SECONDARY_COLOR_ARRAY_SIZE_EXT: CHECK_EXTENSION_D(EXT_secondary_color, pname); - *params = (GLdouble) ctx->Array.SecondaryColor.Stride; + *params = (GLdouble) ctx->Array.SecondaryColor.Size; break; /* GL_EXT_fog_coord */ @@ -4055,7 +4055,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) break; case GL_SECONDARY_COLOR_ARRAY_SIZE_EXT: CHECK_EXTENSION_F(EXT_secondary_color, pname); - *params = (GLfloat) ctx->Array.SecondaryColor.Stride; + *params = (GLfloat) ctx->Array.SecondaryColor.Size; break; /* GL_EXT_fog_coord */ @@ -5475,7 +5475,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) break; case GL_SECONDARY_COLOR_ARRAY_SIZE_EXT: CHECK_EXTENSION_I(EXT_secondary_color, pname); - *params = (GLint) ctx->Array.SecondaryColor.Stride; + *params = (GLint) ctx->Array.SecondaryColor.Size; break; /* GL_EXT_fog_coord */ |