diff options
author | Brian Paul <[email protected]> | 2000-04-07 16:27:26 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-04-07 16:27:26 +0000 |
commit | 2b2e925ea4a5652b0ab73b1efbce345a42663842 (patch) | |
tree | 9824128cf7662c51830bd3b5a0b74721a071a881 /src/mesa/main/enable.c | |
parent | ede4887b1650b18b3a2db3f175fcc33826bbab4d (diff) |
added GL_SGIX/SGIS_pixel_texture extension
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index fa0c84f1731..37090d9c2fa 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1,4 +1,4 @@ -/* $Id: enable.c,v 1.13 2000/04/04 15:14:10 brianp Exp $ */ +/* $Id: enable.c,v 1.14 2000/04/07 16:27:26 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -467,6 +467,16 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) } break; + /* GL_SGIS_pixel_texture */ + case GL_PIXEL_TEXTURE_SGIS: + ctx->Pixel.PixelTextureEnabled = state; + break; + + /* GL_SGIX_pixel_texture */ + case GL_PIXEL_TEX_GEN_SGIX: + ctx->Pixel.PixelTextureEnabled = state; + break; + default: if (state) { gl_error( ctx, GL_INVALID_ENUM, "glEnable" ); @@ -671,6 +681,16 @@ _mesa_IsEnabled( GLenum cap ) return GL_FALSE; } + /* GL_SGIS_pixel_texture */ + case GL_PIXEL_TEXTURE_SGIS: + return ctx->Pixel.PixelTextureEnabled; + break; + + /* GL_SGIX_pixel_texture */ + case GL_PIXEL_TEX_GEN_SGIX: + return ctx->Pixel.PixelTextureEnabled; + break; + default: gl_error( ctx, GL_INVALID_ENUM, "glIsEnabled" ); return GL_FALSE; |