summaryrefslogtreecommitdiff
path: root/progs/trivial/point-wide.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-23 13:10:13 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-23 13:10:13 +0100
commit1e3087cd0315e130248da211811a010bffcaa982 (patch)
tree80813fbf688f0612cb7c4c78ce1326ec3da42500 /progs/trivial/point-wide.c
parent6fc530ccda2971a5d99a955ad90ae9762238040f (diff)
mesa: add dedicated point-wide-smooth test, restore original tri.c as tri-orig.c
Diffstat (limited to 'progs/trivial/point-wide.c')
-rw-r--r--progs/trivial/point-wide.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/progs/trivial/point-wide.c b/progs/trivial/point-wide.c
index d1038ecfa1..265b20097b 100644
--- a/progs/trivial/point-wide.c
+++ b/progs/trivial/point-wide.c
@@ -33,7 +33,6 @@
GLenum doubleBuffer;
-static GLboolean smooth = GL_FALSE;
static void Init(void)
@@ -60,9 +59,6 @@ static void Key(unsigned char key, int x, int y)
{
switch (key) {
- case 's':
- smooth = !smooth;
- break;
case 27:
exit(1);
default:
@@ -75,19 +71,10 @@ static void Key(unsigned char key, int x, int y)
static void Draw(void)
{
glClear(GL_COLOR_BUFFER_BIT);
+ glDisable(GL_DEPTH_TEST);
glPointSize(8.0);
- if (smooth) {
- glEnable(GL_POINT_SMOOTH);
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- }
- else {
- glDisable(GL_POINT_SMOOTH);
- glDisable(GL_BLEND);
- }
-
glBegin(GL_POINTS);
glColor3f(1,0,0);
glVertex3f( 0.9, -0.9, -30.0);