projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62dc802
)
minor clean-ups
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 30 May 2003 15:42:22 +0000
(15:42 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 30 May 2003 15:42:22 +0000
(15:42 +0000)
progs/demos/fplight.c
patch
|
blob
|
history
diff --git
a/progs/demos/fplight.c
b/progs/demos/fplight.c
index 12a3e917ace45b76e98ddd403076ba4b6c8fb3d0..eebe9d1c5c9c1bf986a4c51395f477473cadc8f7 100644
(file)
--- a/
progs/demos/fplight.c
+++ b/
progs/demos/fplight.c
@@
-53,7
+53,6
@@
static void Display( void )
glRotatef(Xrot, 1, 0, 0);
glRotatef(Yrot, 0, 1, 0);
- glTexCoord2f(0, 0);
#if 1
glutSolidSphere(2.0, 10, 5);
#else
@@
-218,7
+217,9
@@
static void Init( void )
}
glGenProgramsNV(1, &FragProg);
+ assert(FragProg > 0);
glGenProgramsNV(1, &VertProg);
+ assert(VertProg > 0);
/*
* Fragment program
@@
-247,7
+248,6
@@
static void Init( void )
* Misc init
*/
glClearColor(0.3, 0.3, 0.3, 0.0);
- glEnable(GL_ALPHA_TEST); /* temporary hack */
glEnable(GL_DEPTH_TEST);
glEnable(GL_LIGHT0);
glEnable(GL_LIGHTING);