From: Ian Romanick Date: Wed, 1 Dec 2004 23:53:43 +0000 (+0000) Subject: Corrected a problem with the sizes of the MAP[12]_* enums. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00d153eb726b6869ad9aa6a099c5ce31013d5535;p=mesa.git Corrected a problem with the sizes of the MAP[12]_* enums. --- diff --git a/src/glx/x11/indirect_size.c b/src/glx/x11/indirect_size.c index c9367e53ac1..95216b5a75e 100644 --- a/src/glx/x11/indirect_size.c +++ b/src/glx/x11/indirect_size.c @@ -256,22 +256,34 @@ __glMap1d_size( GLenum e ) switch( e ) { case GL_MAP1_INDEX: case GL_MAP1_TEXTURE_COORD_1: - case GL_MAP2_INDEX: - case GL_MAP2_TEXTURE_COORD_1: return 1; case GL_MAP1_TEXTURE_COORD_2: - case GL_MAP2_TEXTURE_COORD_2: return 2; case GL_MAP1_NORMAL: case GL_MAP1_TEXTURE_COORD_3: case GL_MAP1_VERTEX_3: - case GL_MAP2_NORMAL: - case GL_MAP2_TEXTURE_COORD_3: - case GL_MAP2_VERTEX_3: return 3; case GL_MAP1_COLOR_4: case GL_MAP1_TEXTURE_COORD_4: case GL_MAP1_VERTEX_4: + return 4; + default: return 0; + } +} + +INTERNAL PURE FASTCALL GLint +__glMap2d_size( GLenum e ) +{ + switch( e ) { + case GL_MAP2_INDEX: + case GL_MAP2_TEXTURE_COORD_1: + return 1; + case GL_MAP2_TEXTURE_COORD_2: + return 2; + case GL_MAP2_NORMAL: + case GL_MAP2_TEXTURE_COORD_3: + case GL_MAP2_VERTEX_3: + return 3; case GL_MAP2_COLOR_4: case GL_MAP2_TEXTURE_COORD_4: case GL_MAP2_VERTEX_4: @@ -350,8 +362,7 @@ ALIAS( TexEnviv, TexEnvfv ) ALIAS( TexGenfv, TexGendv ) ALIAS( TexGeniv, TexGendv ) ALIAS( Map1f, Map1d ) -ALIAS( Map2d, Map1d ) -ALIAS( Map2f, Map1d ) +ALIAS( Map2f, Map2d ) ALIAS( ColorTableParameteriv, ColorTableParameterfv ) ALIAS( ConvolutionParameteriv, ConvolutionParameterfv ) ALIAS( PointParameterivNV, PointParameterfvEXT ) diff --git a/src/mesa/glapi/gl_API.xml b/src/mesa/glapi/gl_API.xml index 4a9cdf4027f..4844df68391 100644 --- a/src/mesa/glapi/gl_API.xml +++ b/src/mesa/glapi/gl_API.xml @@ -326,108 +326,72 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -