r600: Invert front face winding when rendering to FBO

fixes fdo bug 25679

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
This commit is contained in:
Alex Deucher 2009-12-16 16:18:22 -05:00
parent aeea8a07b8
commit 20ee275974

View file

@ -655,6 +655,10 @@ static void r700UpdateCulling(GLcontext * ctx)
CLEARbit(r700->PA_SU_SC_MODE_CNTL.u32All, FACE_bit); /* default: ccw */
break;
}
/* Winding is inverted when rendering to FBO */
if (ctx->DrawBuffer && ctx->DrawBuffer->Name)
r700->PA_SU_SC_MODE_CNTL.u32All ^= FACE_bit;
}
static void r700UpdateLineStipple(GLcontext * ctx)