X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fswrast%2Fs_points.c;h=4e44f67e6b3fff2221915a7179221026f3680ce2;hb=4102a3045cb64a7875c524a58f13766a48bbe164;hp=640a70ac92b26b5c714b4d39221e3eb44486ece2;hpb=45bc887da226403f2c41077e40ca38b6f60f1359;p=mesa.git diff --git a/src/mesa/swrast/s_points.c b/src/mesa/swrast/s_points.c index 640a70ac92b..4e44f67e6b3 100644 --- a/src/mesa/swrast/s_points.c +++ b/src/mesa/swrast/s_points.c @@ -1,10 +1,8 @@ -/* $Id: s_points.c,v 1.21 2003/03/25 02:23:47 brianp Exp $ */ - /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 6.1 * - * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -146,12 +144,12 @@ /* * Sprite (textured point) */ -#define FLAGS (RGBA | SPRITE) +#define FLAGS (RGBA | SPRITE | SPECULAR) #define NAME sprite_point #include "s_pointtemp.h" -#define FLAGS (RGBA | ATTENUATE | SPRITE) +#define FLAGS (RGBA | SPRITE | SPECULAR | ATTENUATE) #define NAME atten_sprite_point #include "s_pointtemp.h" @@ -201,7 +199,7 @@ _swrast_choose_point( GLcontext *ctx ) if (ctx->RenderMode==GL_RENDER) { if (ctx->Point.PointSprite) { - /* GL_NV_point_sprite */ + /* GL_ARB_point_sprite / GL_NV_point_sprite */ /* XXX this might not be good enough */ if (ctx->Point._Attenuated) USE(atten_sprite_point); @@ -214,7 +212,7 @@ _swrast_choose_point( GLcontext *ctx ) if (ctx->Point._Attenuated || ctx->VertexProgram.PointSizeEnabled) { USE(atten_antialiased_rgba_point); } - else if (ctx->Texture._EnabledUnits) { + else if (ctx->Texture._EnabledCoordUnits) { USE(antialiased_tex_rgba_point); } else { @@ -227,7 +225,7 @@ _swrast_choose_point( GLcontext *ctx ) } else if (ctx->Point._Attenuated || ctx->VertexProgram.PointSizeEnabled) { if (rgbMode) { - if (ctx->Texture._EnabledUnits) { + if (ctx->Texture._EnabledCoordUnits) { if (ctx->Point.SmoothFlag) { USE(atten_antialiased_rgba_point); } @@ -244,7 +242,7 @@ _swrast_choose_point( GLcontext *ctx ) USE(atten_general_ci_point); } } - else if (ctx->Texture._EnabledUnits && rgbMode) { + else if (ctx->Texture._EnabledCoordUnits && rgbMode) { /* textured */ USE(textured_rgba_point); }