diff options
author | Ian Romanick <[email protected]> | 2003-08-23 00:12:46 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2003-08-23 00:12:46 +0000 |
commit | 63736723678ef30e7f90835cfbd48c520e39bf11 (patch) | |
tree | 602c0f78481c85b6c3024d2cea9100cc5102e928 /src/mesa/main/attrib.c | |
parent | 3baefe663bb15b4fd60921155de38c12ec2758c4 (diff) |
Trivial changes to add support for GL_ARB_point_sprite, which is a
subset of GL_NV_point_sprite (which was already supported).
Diffstat (limited to 'src/mesa/main/attrib.c')
-rw-r--r-- | src/mesa/main/attrib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 5299c5c1cdd..198bb34cbb9 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -502,7 +502,7 @@ pop_enable_group(GLcontext *ctx, const struct gl_enable_attrib *enable) GL_POINT_SMOOTH); TEST_AND_UPDATE(ctx->Point.SmoothFlag, enable->PointSmooth, GL_POINT_SMOOTH); - if (ctx->Extensions.NV_point_sprite) { + if (ctx->Extensions.NV_point_sprite || ctx->Extensions.ARB_point_sprite) { TEST_AND_UPDATE(ctx->Point.PointSprite, enable->PointSprite, GL_POINT_SPRITE_NV); } @@ -998,7 +998,8 @@ _mesa_PopAttrib(void) _mesa_PointParameterfEXT(GL_POINT_FADE_THRESHOLD_SIZE_EXT, point->Threshold); } - if (ctx->Extensions.NV_point_sprite) { + if (ctx->Extensions.NV_point_sprite + || ctx->Extensions.ARB_point_sprite) { GLuint u; for (u = 0; u < ctx->Const.MaxTextureUnits; u++) { _mesa_TexEnvi(GL_POINT_SPRITE_NV, GL_COORD_REPLACE_NV, |