From: Brian Paul Date: Sun, 7 May 2006 16:16:23 +0000 (+0000) Subject: added CHAN_BITS != 8 test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=960973b2ecfffc3b09563851e86c863e5304f48f;p=mesa.git added CHAN_BITS != 8 test --- diff --git a/src/mesa/drivers/x11/xm_line.c b/src/mesa/drivers/x11/xm_line.c index 17995031145..edb2a211699 100644 --- a/src/mesa/drivers/x11/xm_line.c +++ b/src/mesa/drivers/x11/xm_line.c @@ -578,6 +578,9 @@ get_line_func(GLcontext *ctx) int depth = GET_VISUAL_DEPTH(xmesa->xm_visual); struct xmesa_renderbuffer *xrb; + if (CHAN_BITS != 8) + return NULL; + if ((ctx->DrawBuffer->_ColorDrawBufferMask[0] & (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_BACK_LEFT)) == 0) return (swrast_line_func) NULL;