summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/get.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 9dfbffe542..508d06921f 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1258,7 +1258,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 */
@@ -2633,7 +2633,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 */
@@ -3984,7 +3984,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 */
@@ -5374,7 +5374,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 */