瀏覽代碼

tnl: replace 0x3f with CILP_FRUSTUM_BITS

tags/mesa_7_6_rc1
Brian Paul 16 年之前
父節點
當前提交
134ac52dec
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      src/mesa/tnl/t_vb_cliptmp.h

+ 3
- 3
src/mesa/tnl/t_vb_cliptmp.h 查看文件

@@ -127,7 +127,7 @@ TAG(clip_line)( GLcontext *ctx, GLuint v0, GLuint v1, GLubyte mask )
GLuint p;
const GLuint v0_orig = v0;

if (mask & 0x3f) {
if (mask & CLIP_FRUSTUM_BITS) {
LINE_CLIP( CLIP_RIGHT_BIT, -1, 0, 0, 1 );
LINE_CLIP( CLIP_LEFT_BIT, 1, 0, 0, 1 );
LINE_CLIP( CLIP_TOP_BIT, 0, -1, 0, 1 );
@@ -199,7 +199,7 @@ TAG(clip_tri)( GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLubyte mask )

ASSIGN_3V(inlist, v2, v0, v1 ); /* pv rotated to slot zero */

if (mask & 0x3f) {
if (mask & CLIP_FRUSTUM_BITS) {
POLY_CLIP( CLIP_RIGHT_BIT, -1, 0, 0, 1 );
POLY_CLIP( CLIP_LEFT_BIT, 1, 0, 0, 1 );
POLY_CLIP( CLIP_TOP_BIT, 0, -1, 0, 1 );
@@ -250,7 +250,7 @@ TAG(clip_quad)( GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLuint v3,

ASSIGN_4V(inlist, v3, v0, v1, v2 ); /* pv rotated to slot zero */

if (mask & 0x3f) {
if (mask & CLIP_FRUSTUM_BITS) {
POLY_CLIP( CLIP_RIGHT_BIT, -1, 0, 0, 1 );
POLY_CLIP( CLIP_LEFT_BIT, 1, 0, 0, 1 );
POLY_CLIP( CLIP_TOP_BIT, 0, -1, 0, 1 );

Loading…
取消
儲存