projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62f5f18
)
culling was inverted
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 12 Jul 2007 17:59:15 +0000
(11:59 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 12 Jul 2007 17:59:15 +0000
(11:59 -0600)
src/mesa/pipe/draw/draw_cull.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/draw/draw_cull.c
b/src/mesa/pipe/draw/draw_cull.c
index b6c578b3c94a7cbf2ea7b97859732a15db2cce03..1498874fcf94f1614a4fb66c8ea2265da511ee76 100644
(file)
--- a/
src/mesa/pipe/draw/draw_cull.c
+++ b/
src/mesa/pipe/draw/draw_cull.c
@@
-79,7
+79,7
@@
static void cull_tri( struct prim_stage *stage,
if (header->det != 0) {
/* non-zero area */
- GLuint mode = (header->det
<
0) ? PIPE_WINDING_CW : PIPE_WINDING_CCW;
+ GLuint mode = (header->det
>
0) ? PIPE_WINDING_CW : PIPE_WINDING_CCW;
if ((mode & cull_stage(stage)->mode) == 0) {
/* triangle is not culled, pass to next stage */