summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/pixel.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-02-27 16:42:01 +0000
committerBrian Paul <[email protected]>2001-02-27 16:42:01 +0000
commit8753b1c397d8f5778fa527bf4f6bb6b0cb435874 (patch)
tree38be4c79a74d9f2c25936e0f4de252d1f654be0c /src/mesa/main/pixel.c
parentbed4c5bf58c91f37e2526bbb98fbda27c65455ff (diff)
colortable w/ size=0 wasn't handled correctly
Diffstat (limited to 'src/mesa/main/pixel.c')
-rw-r--r--src/mesa/main/pixel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c
index 470a2f8e157..22575074b6a 100644
--- a/src/mesa/main/pixel.c
+++ b/src/mesa/main/pixel.c
@@ -1,4 +1,4 @@
-/* $Id: pixel.c,v 1.24 2001/01/23 23:39:36 brianp Exp $ */
+/* $Id: pixel.c,v 1.25 2001/02/27 16:42:01 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -877,7 +877,7 @@ _mesa_lookup_rgba(const struct gl_color_table *table,
GLuint n, GLfloat rgba[][4])
{
ASSERT(table->FloatTable);
- if (!table->Table)
+ if (!table->Table || table->Size == 0)
return;
switch (table->Format) {