From d475730357ff1595470fbe9856b2c88ad0a771ca Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 20 Oct 2000 19:54:49 +0000 Subject: Changes for multitexture > 3, code clean-ups. Added GLboolean ctx->Texture.MultiTextureEnabled to determine when multitexture is enabled. Eventually ctx->Texture.ReallyEnabled may become a boolean. --- src/mesa/main/points.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mesa/main/points.c') diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c index 75f1244301..0ab383bc9d 100644 --- a/src/mesa/main/points.c +++ b/src/mesa/main/points.c @@ -1,4 +1,4 @@ -/* $Id: points.c,v 1.14 2000/09/29 16:58:44 brianp Exp $ */ +/* $Id: points.c,v 1.15 2000/10/20 19:54:49 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -590,7 +590,7 @@ antialiased_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) /* coverage is in [0,256] */ alpha = (alpha * coverage) >> 8; } - if (ctx->Texture.ReallyEnabled >= TEXTURE1_1D) { + if (ctx->Texture.MultiTextureEnabled) { PB_WRITE_MULTITEX_PIXEL( PB, x,y,z, red, green, blue, alpha, texcoord ); } @@ -974,7 +974,7 @@ dist_atten_textured_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) for (iy = y0; iy <= y1; iy++) { for (ix = x0; ix <= x1; ix++) { - if (ctx->Texture.ReallyEnabled >= TEXTURE1_1D) { + if (ctx->Texture.MultiTextureEnabled) { PB_WRITE_MULTITEX_PIXEL( PB, ix, iy, z, red, green, blue, alpha, texcoord ); @@ -1092,7 +1092,7 @@ dist_atten_antialiased_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) alpha = (alpha * coverage) >> 8; } alpha = (GLint) (alpha * alphaf); - if (ctx->Texture.ReallyEnabled >= TEXTURE1_1D) { + if (ctx->Texture.MultiTextureEnabled) { PB_WRITE_MULTITEX_PIXEL( PB, x, y, z, red, green, blue, alpha, texcoord ); @@ -1230,7 +1230,7 @@ void gl_set_point_function( GLcontext *ctx ) ctx->Driver.PointsFunc = antialiased_rgba_points; } else if (ctx->Texture.ReallyEnabled) { - if (ctx->Texture.ReallyEnabled >= TEXTURE1_1D || + if (ctx->Texture.MultiTextureEnabled || ctx->Light.Model.ColorControl==GL_SEPARATE_SPECULAR_COLOR) { ctx->Driver.PointsFunc = multitextured_rgba_points; } -- cgit v1.2.3