summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-09-03 17:33:16 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-09-03 17:33:16 +0000
commit05aed23d1bbc3dbcd9fe9fd592f4c3b245456123 (patch)
tree2fda8018f1c6ca42e1d4499e98584c975b1d5012 /src
parentacafeeb6dce74382fb3a48b83ab72bf67b7581ea (diff)
fudge set_component_sizes() a bit, see comments
Diffstat (limited to 'src')
-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 2cd1094fb3..4f0801578c 100644
--- a/src/mesa/main/colortab.c
+++ b/src/mesa/main/colortab.c
@@ -108,7 +108,11 @@ set_component_sizes( struct gl_color_table *table )
sz = 8 * sizeof(GLushort);
break;
case GL_FLOAT:
- sz = 8 * sizeof(GLfloat);
+ /* Don't actually return 32 here since that causes the conformance
+ * tests to blow up. Conform thinks the component is an integer,
+ * not a float.
+ */
+ sz = 8; /** 8 * sizeof(GLfloat); **/
break;
default:
_mesa_problem(NULL, "bad color table type in set_component_sizes 0x%x", table->Type);