Now that all users are converted, remove the array.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
GLboolean SmoothFlag; /**< True if GL_POINT_SMOOTH is enabled */
GLboolean _Attenuated; /**< True if Params != [1, 0, 0] */
GLboolean PointSprite; /**< GL_NV/ARB_point_sprite */
- GLboolean CoordReplace[MAX_TEXTURE_COORD_UNITS]; /**< GL_ARB_point_sprite*/
GLbitfield CoordReplaceBits; /**< GL_ARB_point_sprite*/
GLenum SpriteRMode; /**< GL_NV_point_sprite (only!) */
GLenum SpriteOrigin; /**< GL_ARB_point_sprite */
void
_mesa_init_point(struct gl_context *ctx)
{
- GLuint i;
-
ctx->Point.SmoothFlag = GL_FALSE;
ctx->Point.Size = 1.0;
ctx->Point.Params[0] = 1.0;
ctx->Point.SpriteRMode = GL_ZERO; /* GL_NV_point_sprite (only!) */
ctx->Point.SpriteOrigin = GL_UPPER_LEFT; /* GL_ARB_point_sprite */
- for (i = 0; i < ARRAY_SIZE(ctx->Point.CoordReplace); i++) {
- ctx->Point.CoordReplace[i] = GL_FALSE; /* GL_ARB/NV_point_sprite */
- }
ctx->Point.CoordReplaceBits = 0; /* GL_ARB/NV_point_sprite */
}
if (ctx->Point.CoordReplaceBits & (1u << ctx->Texture.CurrentUnit))
return;
ctx->Point.CoordReplaceBits |= (1u << ctx->Texture.CurrentUnit);
- ctx->Point.CoordReplace[ctx->Texture.CurrentUnit] = GL_TRUE;
} else if (iparam0 == GL_FALSE) {
if (~(ctx->Point.CoordReplaceBits) & (1u << ctx->Texture.CurrentUnit))
return;
ctx->Point.CoordReplaceBits &= ~(1u << ctx->Texture.CurrentUnit);
- ctx->Point.CoordReplace[ctx->Texture.CurrentUnit] = GL_FALSE;
} else {
_mesa_error( ctx, GL_INVALID_VALUE, "glTexEnv(param=0x%x)", iparam0);
return;