diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-11 21:42:47 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-11 21:42:47 +0000 |
commit | cf1ca3f9124af9f9c3209e6a5d14078e837d8204 (patch) | |
tree | 99a874d28c50a28938c3edd1897e362fc238ad1b | |
parent | 50f184e75925b0783c423b06d6edae7e2d177f3e (diff) |
check EXT_point_parameters before calling PointParameterfvEXT()
-rw-r--r-- | src/mesa/main/attrib.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 75215fc2b2..6dd8b826a0 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1,4 +1,4 @@ -/* $Id: attrib.c,v 1.57.2.5 2002/08/28 01:13:34 brianp Exp $ */ +/* $Id: attrib.c,v 1.57.2.6 2002/10/11 21:42:47 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -943,12 +943,16 @@ _mesa_PopAttrib(void) point = (const struct gl_point_attrib *) attr->data; _mesa_PointSize(point->Size); _mesa_set_enable(ctx, GL_POINT_SMOOTH, point->SmoothFlag); - _mesa_PointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, - point->Params); - _mesa_PointParameterfEXT(GL_POINT_SIZE_MIN_EXT, point->MinSize); - _mesa_PointParameterfEXT(GL_POINT_SIZE_MAX_EXT, point->MaxSize); - _mesa_PointParameterfEXT(GL_POINT_FADE_THRESHOLD_SIZE_EXT, - point->Threshold); + if (ctx->Extensions.EXT_point_parameters) { + _mesa_PointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, + point->Params); + _mesa_PointParameterfEXT(GL_POINT_SIZE_MIN_EXT, + point->MinSize); + _mesa_PointParameterfEXT(GL_POINT_SIZE_MAX_EXT, + point->MaxSize); + _mesa_PointParameterfEXT(GL_POINT_FADE_THRESHOLD_SIZE_EXT, + point->Threshold); + } } break; case GL_POLYGON_BIT: |