added proxy texture targets to GetColorTableParameter (Steven Fuller)
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 28 Feb 2000 20:38:37 +0000 (20:38 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 28 Feb 2000 20:38:37 +0000 (20:38 +0000)
src/mesa/main/colortab.c

index f190beaf36b03caf4e67e399d01dde6f59868fb9..713e7c66202df62646a4792923eff5b9146998b8 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: colortab.c,v 1.8 2000/02/24 22:04:03 brianp Exp $ */
+/* $Id: colortab.c,v 1.9 2000/02/28 20:38:37 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -409,6 +409,15 @@ _mesa_GetColorTableParameteriv( GLenum target, GLenum pname, GLint *params )
       case GL_TEXTURE_3D:
          palette = &texUnit->CurrentD[3]->Palette;
          break;
+      case GL_PROXY_TEXTURE_1D:
+         palette = &ctx->Texture.Proxy1D->Palette;
+         break;
+      case GL_PROXY_TEXTURE_2D:
+         palette = &ctx->Texture.Proxy2D->Palette;
+         break;
+      case GL_PROXY_TEXTURE_3D:
+         palette = &ctx->Texture.Proxy3D->Palette;
+         break;
       case GL_SHARED_TEXTURE_PALETTE_EXT:
          palette = &ctx->Texture.Palette;
          break;