From: Brian Paul Date: Thu, 13 Apr 2006 15:57:29 +0000 (+0000) Subject: Set array normalization flag for normals, colors (Keith) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad38681a00fc13449b76c2bf1fde0d31b0f9aec8;p=mesa.git Set array normalization flag for normals, colors (Keith) --- diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 9f8dc766c9d..87d9660b7ed 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -167,7 +167,7 @@ _mesa_NormalPointer(GLenum type, GLsizei stride, const GLvoid *ptr ) } update_array(ctx, &ctx->Array.Normal, _NEW_ARRAY_NORMAL, - elementSize, 3, type, stride, GL_FALSE, ptr); + elementSize, 3, type, stride, GL_TRUE, ptr); if (ctx->Driver.NormalPointer) ctx->Driver.NormalPointer( ctx, type, stride, ptr ); @@ -225,7 +225,7 @@ _mesa_ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr) } update_array(ctx, &ctx->Array.Color, _NEW_ARRAY_COLOR0, - elementSize, size, type, stride, GL_FALSE, ptr); + elementSize, size, type, stride, GL_TRUE, ptr); if (ctx->Driver.ColorPointer) ctx->Driver.ColorPointer( ctx, size, type, stride, ptr ); @@ -357,7 +357,7 @@ _mesa_SecondaryColorPointerEXT(GLint size, GLenum type, } update_array(ctx, &ctx->Array.SecondaryColor, _NEW_ARRAY_COLOR1, - elementSize, size, type, stride, GL_FALSE, ptr); + elementSize, size, type, stride, GL_TRUE, ptr); if (ctx->Driver.SecondaryColorPointer) ctx->Driver.SecondaryColorPointer( ctx, size, type, stride, ptr );