Browse Source

swrast: fix selection/feedback regression

This fixes a conform selection/feedback regression introduced by commit
8f4d66c5f8
tags/mesa_7_6_rc1
Brian Paul 16 years ago
parent
commit
a1d3855fb0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/mesa/swrast/s_triangle.c

+ 1
- 1
src/mesa/swrast/s_triangle.c View File

@@ -61,7 +61,7 @@ _swrast_culltriangle( GLcontext *ctx,
GLfloat fy = v2->attrib[FRAG_ATTRIB_WPOS][1] - v0->attrib[FRAG_ATTRIB_WPOS][1];
GLfloat c = ex*fy-ey*fx;

if (c * swrast->_BackfaceSign * swrast->_BackfaceCullSign < 0.0F)
if (c * swrast->_BackfaceSign * swrast->_BackfaceCullSign <= 0.0F)
return GL_FALSE;

return GL_TRUE;

Loading…
Cancel
Save