summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-02-28 20:38:37 +0000
committerBrian Paul <[email protected]>2000-02-28 20:38:37 +0000
commitaae9db03e43c36d164a86e2b512202ac510b8084 (patch)
treee05c0261a09ed9218fd8b06c8c241955dc6cb984 /src
parent26a89579e44d49c397e91bcf9435a1f198ae8ecc (diff)
added proxy texture targets to GetColorTableParameter (Steven Fuller)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/colortab.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/main/colortab.c b/src/mesa/main/colortab.c
index f190beaf36b..713e7c66202 100644
--- a/src/mesa/main/colortab.c
+++ b/src/mesa/main/colortab.c
@@ -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;