mesa: re-dimension RasterTexCoords and CoordReplace
authorBrian Paul <brianp@vmware.com>
Wed, 3 Feb 2010 21:09:48 +0000 (14:09 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 3 Feb 2010 22:48:42 +0000 (15:48 -0700)
These are limited to the number of texture coordinate units.

src/mesa/main/mtypes.h

index 297c5ae878a767d81aa0130f40729ae049a4a881..aeb9b3adea894f339d9ff8e86cc3b1341fb63490 100644 (file)
@@ -631,7 +631,7 @@ struct gl_current_attrib
    GLfloat RasterColor[4];
    GLfloat RasterSecondaryColor[4];
    GLfloat RasterIndex;
-   GLfloat RasterTexCoords[MAX_TEXTURE_UNITS][4];
+   GLfloat RasterTexCoords[MAX_TEXTURE_COORD_UNITS][4];
    GLboolean RasterPosValid;
    /*@}*/
 };
@@ -963,7 +963,7 @@ struct gl_point_attrib
    GLfloat Threshold;          /**< GL_EXT_point_parameters */
    GLboolean _Attenuated;      /**< True if Params != [1, 0, 0] */
    GLboolean PointSprite;      /**< GL_NV/ARB_point_sprite */
-   GLboolean CoordReplace[MAX_TEXTURE_UNITS]; /**< GL_ARB_point_sprite */
+   GLboolean CoordReplace[MAX_TEXTURE_COORD_UNITS]; /**< GL_ARB_point_sprite*/
    GLenum SpriteRMode;         /**< GL_NV_point_sprite (only!) */
    GLenum SpriteOrigin;                /**< GL_ARB_point_sprite */
 };