浏览代码

added some CHAN_BITS tests

tags/mesa-6_5-20060712
Brian Paul 19 年前
父节点
当前提交
083f8111aa
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9
    0
      src/mesa/drivers/x11/xm_line.c

+ 9
- 0
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;
}


正在加载...
取消
保存