From 083f8111aac27f47feb2f35a10970fc40b940eb1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 19 May 2006 03:49:13 +0000 Subject: added some CHAN_BITS tests --- src/mesa/drivers/x11/xm_line.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/drivers/x11/xm_line.c b/src/mesa/drivers/x11/xm_line.c index edb2a21169..c310542515 100644 --- a/src/mesa/drivers/x11/xm_line.c +++ b/src/mesa/drivers/x11/xm_line.c @@ -117,6 +117,9 @@ void xmesa_choose_point( GLcontext *ctx ) /**********************************************************************/ +#if CHAN_BITS == 8 + + #define GET_XRB(XRB) struct xmesa_renderbuffer *XRB = \ xmesa_renderbuffer(ctx->DrawBuffer->_ColorDrawBuffers[0][0]->Wrapped) @@ -533,6 +536,7 @@ void xmesa_choose_point( GLcontext *ctx ) + #ifndef XFree86Server /** * Draw fast, XOR line with XDrawLine in front color buffer. @@ -566,6 +570,9 @@ xor_line(GLcontext *ctx, const SWvertex *vert0, const SWvertex *vert1) #endif /* XFree86Server */ +#endif /* CHAN_BITS == 8 */ + + /** * Return pointer to line drawing function, or NULL if we should use a * swrast fallback. @@ -573,6 +580,7 @@ xor_line(GLcontext *ctx, const SWvertex *vert0, const SWvertex *vert1) static swrast_line_func get_line_func(GLcontext *ctx) { +#if CHAN_BITS == 8 XMesaContext xmesa = XMESA_CONTEXT(ctx); SWcontext *swrast = SWRAST_CONTEXT(ctx); int depth = GET_VISUAL_DEPTH(xmesa->xm_visual); @@ -664,6 +672,7 @@ get_line_func(GLcontext *ctx) } #endif /* XFree86Server */ +#endif /* CHAN_BITS == 8 */ return (swrast_line_func) NULL; } -- cgit v1.2.3