mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
aeea8a07b8
commit
20ee275974
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue