summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-05-19 03:49:13 +0000
committerBrian Paul <[email protected]>2006-05-19 03:49:13 +0000
commit083f8111aac27f47feb2f35a10970fc40b940eb1 (patch)
tree76aef1ceceb26a4b275f2332a76c72b40cbb9e25 /src/mesa/drivers/x11
parent68bc7df63813d7dba2f03e74f028317b7247e358 (diff)
added some CHAN_BITS tests
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/xm_line.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_line.c b/src/mesa/drivers/x11/xm_line.c
index edb2a211699..c3105425159 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;
}