diff options
author | Alan Hourihane <alanh@tungstengraphics.com> | 2007-10-28 20:07:37 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@tungstengraphics.com> | 2007-10-28 20:07:37 +0000 |
commit | b59dbd822f353cbf0db404f14c2721c79cde79fc (patch) | |
tree | b868cc45f9f685d71cbba98d8b37eb51fcfcefa1 /src/mesa/main/attrib.c | |
parent | 9514209593fbc6c2e3d00d0ac65b17c30751c849 (diff) | |
download | mesa-b59dbd822f353cbf0db404f14c2721c79cde79fc.tar.gz |
Only set R_MODE with NV_point_sprite
Diffstat (limited to 'src/mesa/main/attrib.c')
-rw-r--r-- | src/mesa/main/attrib.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |