summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-05-07 16:16:23 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-05-07 16:16:23 +0000
commit960973b2ecfffc3b09563851e86c863e5304f48f (patch)
treea33caac4d6a7b546d70b932c61c5c3701a7f91fd /src/mesa/drivers/x11
parent85bc17495b5fe263f288904aa97dcf16d7eb6910 (diff)
added CHAN_BITS != 8 test
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/xm_line.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_line.c b/src/mesa/drivers/x11/xm_line.c
index 1799503114..edb2a21169 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;