From: Brian Paul Date: Mon, 31 Aug 2009 23:54:46 +0000 (-0600) Subject: swrast: fix selection/feedback regression X-Git-Tag: mesa-7.8~2464^2~177^2~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f785080db33d437893564dded325452770699be;p=platform%2Fupstream%2Fmesa.git swrast: fix selection/feedback regression This fixes a conform selection/feedback regression introduced by commit 8f4d66c5f893b49eb3973aa3b31a856314c045c7 --- diff --git a/src/mesa/swrast/s_triangle.c b/src/mesa/swrast/s_triangle.c index 1d2fed7..1ab0e19 100644 --- a/src/mesa/swrast/s_triangle.c +++ b/src/mesa/swrast/s_triangle.c @@ -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;