diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2009-06-30 17:29:14 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2009-06-30 17:29:52 -0700 |
commit | f359165a8295a2f3bff7c80a8e45d91ca98392a9 (patch) | |
tree | 5e6ad728305420c844f64a3ef2e236992aa6553e /progs/demos | |
parent | 18a1c36c2d32f8c571f98d7e6857a44bb2dc8942 (diff) | |
download | external_mesa3d-f359165a8295a2f3bff7c80a8e45d91ca98392a9.zip external_mesa3d-f359165a8295a2f3bff7c80a8e45d91ca98392a9.tar.gz external_mesa3d-f359165a8295a2f3bff7c80a8e45d91ca98392a9.tar.bz2 |
demos: Set the depth mask correctly to get the desired blending
Diffstat (limited to 'progs/demos')
-rw-r--r-- | progs/demos/pointblast.c | 4 | ||||
-rw-r--r-- | progs/demos/spriteblast.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/progs/demos/pointblast.c b/progs/demos/pointblast.c index 2a91b76..2d70b72 100644 --- a/progs/demos/pointblast.c +++ b/progs/demos/pointblast.c @@ -194,11 +194,11 @@ redraw(void) { int i; + glDepthMask(GL_TRUE); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); if (newModel) recalcModelView(); - glDepthMask(GL_FALSE); /* Draw the floor. */ /* glEnable(GL_TEXTURE_2D);*/ @@ -215,7 +215,7 @@ redraw(void) glEnd(); /* Allow particles to blend with each other. */ - glDepthMask(GL_TRUE); + glDepthMask(GL_FALSE); if (blend) glEnable(GL_BLEND); diff --git a/progs/demos/spriteblast.c b/progs/demos/spriteblast.c index f6630c2..d73b680 100644 --- a/progs/demos/spriteblast.c +++ b/progs/demos/spriteblast.c @@ -209,13 +209,13 @@ redraw(void) { int i; + glDepthMask(GL_TRUE); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glPushMatrix(); glRotatef(15.0, 1.0, 0.0, 0.0); glRotatef(angle, 0.0, 1.0, 0.0); - glDepthMask(GL_FALSE); /* Draw the floor. */ /* glEnable(GL_TEXTURE_2D);*/ @@ -232,7 +232,7 @@ redraw(void) glEnd(); /* Allow particles to blend with each other. */ - glDepthMask(GL_TRUE); + glDepthMask(GL_FALSE); if (blend) glEnable(GL_BLEND); |