From 8753b1c397d8f5778fa527bf4f6bb6b0cb435874 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 27 Feb 2001 16:42:01 +0000 Subject: colortable w/ size=0 wasn't handled correctly --- src/mesa/main/pixel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/pixel.c') diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c index 470a2f8e15..22575074b6 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) { -- cgit v1.2.3