mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 06:00:31 +01:00
r600: fix glFrontFace(GL_CW)
fd.o bug #25290 Suggested fix from Rafael Monica
This commit is contained in:
parent
32d737397c
commit
393857a2f5
1 changed files with 2 additions and 7 deletions
|
|
@ -1227,13 +1227,8 @@ static void r700UpdatePolygonMode(GLcontext * ctx)
|
|||
/* Handle GL_CW (clock wise and GL_CCW (counter clock wise)
|
||||
* correctly by selecting the correct front and back face
|
||||
*/
|
||||
if (ctx->Polygon.FrontFace == GL_CCW) {
|
||||
f = ctx->Polygon.FrontMode;
|
||||
b = ctx->Polygon.BackMode;
|
||||
} else {
|
||||
f = ctx->Polygon.BackMode;
|
||||
b = ctx->Polygon.FrontMode;
|
||||
}
|
||||
f = ctx->Polygon.FrontMode;
|
||||
b = ctx->Polygon.BackMode;
|
||||
|
||||
/* Enable polygon mode */
|
||||
SETfield(r700->PA_SU_SC_MODE_CNTL.u32All, X_DUAL_MODE, POLY_MODE_shift, POLY_MODE_mask);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue