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:08:15 +0000 |
commit | 177f6398e5d71fab249f8f7ee73e7197881bef84 (patch) | |
tree | eadb416169d625ea3f794d02068901557ed4d754 | |
parent | 887bd6a46f34ede5e60459040a4b44181888743f (diff) |
Only set R_MODE with NV_point_sprite
-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 427a6b0901..8ddfda8ba0 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1106,7 +1106,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); |