aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/colortab.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-11-21 23:26:13 +0000
committerBrian Paul <[email protected]>2000-11-21 23:26:13 +0000
commit0c000ec90c8ca38bfcb94394001665d0be3112dd (patch)
tree3eee8bc046c72ec09b5b53327799c69e91e6e247 /src/mesa/main/colortab.c
parentc34cea7de54525a337c904cf22fc026b7ca31578 (diff)
call gl_update_state() if needed in glGetColorTable, glGetConvolutionFilter
Diffstat (limited to 'src/mesa/main/colortab.c')
-rw-r--r--src/mesa/main/colortab.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/colortab.c b/src/mesa/main/colortab.c
index 63b58e57f7b..31e595bdb84 100644
--- a/src/mesa/main/colortab.c
+++ b/src/mesa/main/colortab.c
@@ -1,4 +1,4 @@
-/* $Id: colortab.c,v 1.28 2000/11/21 23:01:23 brianp Exp $ */
+/* $Id: colortab.c,v 1.29 2000/11/21 23:26:13 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -689,6 +689,10 @@ _mesa_GetColorTable( GLenum target, GLenum format,
ASSERT_OUTSIDE_BEGIN_END(ctx, "glGetColorTable");
+ if (ctx->NewState) {
+ gl_update_state(ctx);
+ }
+
switch (target) {
case GL_TEXTURE_1D:
table = &texUnit->Current1D->Palette;