added some CHAN_BITS tests
This commit is contained in:
@@ -117,6 +117,9 @@ void xmesa_choose_point( GLcontext *ctx )
|
|||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
#if CHAN_BITS == 8
|
||||||
|
|
||||||
|
|
||||||
#define GET_XRB(XRB) struct xmesa_renderbuffer *XRB = \
|
#define GET_XRB(XRB) struct xmesa_renderbuffer *XRB = \
|
||||||
xmesa_renderbuffer(ctx->DrawBuffer->_ColorDrawBuffers[0][0]->Wrapped)
|
xmesa_renderbuffer(ctx->DrawBuffer->_ColorDrawBuffers[0][0]->Wrapped)
|
||||||
|
|
||||||
@@ -533,6 +536,7 @@ void xmesa_choose_point( GLcontext *ctx )
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef XFree86Server
|
#ifndef XFree86Server
|
||||||
/**
|
/**
|
||||||
* Draw fast, XOR line with XDrawLine in front color buffer.
|
* 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 /* XFree86Server */
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* CHAN_BITS == 8 */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return pointer to line drawing function, or NULL if we should use a
|
* Return pointer to line drawing function, or NULL if we should use a
|
||||||
* swrast fallback.
|
* swrast fallback.
|
||||||
@@ -573,6 +580,7 @@ xor_line(GLcontext *ctx, const SWvertex *vert0, const SWvertex *vert1)
|
|||||||
static swrast_line_func
|
static swrast_line_func
|
||||||
get_line_func(GLcontext *ctx)
|
get_line_func(GLcontext *ctx)
|
||||||
{
|
{
|
||||||
|
#if CHAN_BITS == 8
|
||||||
XMesaContext xmesa = XMESA_CONTEXT(ctx);
|
XMesaContext xmesa = XMESA_CONTEXT(ctx);
|
||||||
SWcontext *swrast = SWRAST_CONTEXT(ctx);
|
SWcontext *swrast = SWRAST_CONTEXT(ctx);
|
||||||
int depth = GET_VISUAL_DEPTH(xmesa->xm_visual);
|
int depth = GET_VISUAL_DEPTH(xmesa->xm_visual);
|
||||||
@@ -664,6 +672,7 @@ get_line_func(GLcontext *ctx)
|
|||||||
}
|
}
|
||||||
#endif /* XFree86Server */
|
#endif /* XFree86Server */
|
||||||
|
|
||||||
|
#endif /* CHAN_BITS == 8 */
|
||||||
return (swrast_line_func) NULL;
|
return (swrast_line_func) NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user