From: Keith Whitwell Date: Thu, 10 May 2001 15:42:42 +0000 (+0000) Subject: Set 'prefer_float_colors' true, now that tnl uses them natively. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b6a91a93f1b3f79796f398884aaca77a8a09198;p=mesa.git Set 'prefer_float_colors' true, now that tnl uses them natively. Apply Jeff Epler's optimization to ci spans as well, remove old code. --- diff --git a/src/mesa/drivers/x11/xm_span.c b/src/mesa/drivers/x11/xm_span.c index 404bd9e02b8..c9c1bdeb84b 100644 --- a/src/mesa/drivers/x11/xm_span.c +++ b/src/mesa/drivers/x11/xm_span.c @@ -1,4 +1,4 @@ -/* $Id: xm_span.c,v 1.12 2001/05/10 14:21:17 brianp Exp $ */ +/* $Id: xm_span.c,v 1.13 2001/05/10 15:42:43 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -2547,51 +2547,35 @@ static void write_span_mono_pixmap( MONO_SPAN_ARGS ) XMesaGC gc = xmesa->xm_buffer->gc; const unsigned long pixel = xmesa_color_to_pixel(xmesa, color[RCOMP], color[GCOMP], color[BCOMP], color[ACOMP], xmesa->pixelformat); - register GLboolean write_all; register GLuint i; XMesaSetForeground( xmesa->display, gc, pixel ); y = FLIP(xmesa->xm_buffer, y); - write_all = GL_TRUE; - for (i=0;ixm_visual->display; XMesaDrawable buffer = xmesa->xm_buffer->buffer; XMesaGC gc = xmesa->xm_buffer->gc; - register GLboolean write_all; register GLuint i; XMesaSetForeground( xmesa->display, gc, colorIndex ); y = FLIP(xmesa->xm_buffer, y); - write_all = GL_TRUE; - for (i=0;iAccum = save_Accum; diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 5586f7e4bd9..e699ac07528 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -1,4 +1,4 @@ -/* $Id: state.c,v 1.64 2001/03/29 21:16:25 keithw Exp $ */ +/* $Id: state.c,v 1.65 2001/05/10 15:42:43 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -123,7 +123,7 @@ _mesa_init_exec_table(struct _glapi_table *exec, GLuint tableSize) /* first initialize all dispatch slots to no-op */ _mesa_init_no_op_table(exec, tableSize); - _mesa_loopback_init_api_table( exec, GL_FALSE ); + _mesa_loopback_init_api_table( exec, GL_TRUE ); /* load the dispatch slots we understand */ exec->Accum = _mesa_Accum;