From: Brian Paul Date: Tue, 1 Apr 2003 18:27:07 +0000 (+0000) Subject: GL_SECONDARY_COLOR_ARRAY_SIZE_EXT query was returning stride X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b28b5a885078dc4c8274a26c263c6586166e2e3;p=mesa.git GL_SECONDARY_COLOR_ARRAY_SIZE_EXT query was returning stride --- diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 996f712ca23..68508c77380 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 */