projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32d7373
)
r600: fix glFrontFace(GL_CW)
author
Dave Airlie
<airlied@redhat.com>
Mon, 21 Dec 2009 00:21:28 +0000
(10:21 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 21 Dec 2009 00:21:28 +0000
(10:21 +1000)
fd.o bug #25290
Suggested fix from Rafael Monica
src/mesa/drivers/dri/r600/r700_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r700_state.c
b/src/mesa/drivers/dri/r600/r700_state.c
index d7420678ff0f7de0079e9b1a0716a4557208416c..7b1fa732246e3335b3c5753e89da37d172c497c0 100644
(file)
--- a/
src/mesa/drivers/dri/r600/r700_state.c
+++ b/
src/mesa/drivers/dri/r600/r700_state.c
@@
-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);