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/enable.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/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 3106a987f8a..8cb84d55d6e 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -48,6 +48,12 @@ return; \ } +#define CHECK_EXTENSION2(EXT1, EXT2, CAP) \ + if (!ctx->Extensions.EXT1 && !ctx->Extensions.EXT2) { \ + _mesa_error(ctx, GL_INVALID_ENUM, "gl%sClientState(0x%x)", \ + state ? "Enable" : "Disable", CAP); \ + return; \ + } static void @@ -834,7 +840,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) /* GL_NV_point_sprite */ case GL_POINT_SPRITE_NV: - CHECK_EXTENSION(NV_point_sprite, cap); + CHECK_EXTENSION2(NV_point_sprite, ARB_point_sprite, cap); if (ctx->Point.PointSprite == state) return; FLUSH_VERTICES(ctx, _NEW_POINT); |