Only set R_MODE with NV_point_sprite
authorAlan Hourihane <alanh@tungstengraphics.com>
Sun, 28 Oct 2007 20:07:37 +0000 (20:07 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Sun, 28 Oct 2007 20:07:37 +0000 (20:07 +0000)
src/mesa/main/attrib.c

index 3199c9b426bfe6a2368efaf2bd4ac71141a14062..07ec285eeb7836b913e572d34abea9106b2decc2 100644 (file)
@@ -1102,7 +1102,8 @@ _mesa_PopAttrib(void)
                                    (GLint) point->CoordReplace[u]);
                   }
                   _mesa_set_enable(ctx, GL_POINT_SPRITE_NV,point->PointSprite);
-                  _mesa_PointParameteriNV(GL_POINT_SPRITE_R_MODE_NV,
+                  if (ctx->Extensions.NV_point_sprite)
+                     _mesa_PointParameteriNV(GL_POINT_SPRITE_R_MODE_NV,
                                           ctx->Point.SpriteRMode);
                   _mesa_PointParameterfEXT(GL_POINT_SPRITE_COORD_ORIGIN,
                                            (GLfloat)ctx->Point.SpriteOrigin);