diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mesa/drivers/x11/xm_line.c | 9 | 
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 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;  } | 
