diff options
author | Brian Paul <[email protected]> | 2002-01-22 18:40:46 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-01-22 18:40:46 +0000 |
commit | 6ee7a02852e45efbfe2843c450dd72243f703430 (patch) | |
tree | 957e6603d9e9469d07ac847a7e07607e32527a72 | |
parent | 8bd13de4cca7fd04d4e3a72b8e95f61e5b9653fd (diff) |
added missing IsEnabled() cases for fog coord and secondary color arrays
-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 abeb35a76bd..755f74ac397 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1,4 +1,4 @@ -/* $Id: enable.c,v 1.55 2002/01/11 17:26:54 brianp Exp $ */ +/* $Id: enable.c,v 1.56 2002/01/22 18:40:46 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1069,6 +1069,12 @@ _mesa_IsEnabled( GLenum cap ) return (ctx->Array.TexCoord[ctx->Array.ActiveTexture].Enabled != 0); case GL_EDGE_FLAG_ARRAY: return (ctx->Array.EdgeFlag.Enabled != 0); + case GL_FOG_COORDINATE_ARRAY_EXT: + CHECK_EXTENSION(EXT_fog_coord); + return (ctx->Array.FogCoord.Enabled != 0); + case GL_SECONDARY_COLOR_ARRAY_EXT: + CHECK_EXTENSION(EXT_secondary_color); + return (ctx->Array.SecondaryColor.Enabled != 0); /* GL_EXT_histogram */ case GL_HISTOGRAM: |