From: Alan Hourihane Date: Sun, 28 Oct 2007 20:07:37 +0000 (+0000) Subject: Only set R_MODE with NV_point_sprite X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b59dbd822f353cbf0db404f14c2721c79cde79fc;p=mesa.git Only set R_MODE with NV_point_sprite --- diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 3199c9b426b..07ec285eeb7 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -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);