projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trace/rbug: Add support for draw block rule
[mesa.git]
/
progs
/
trivial
/
tri-blend-sub.c
diff --git
a/progs/trivial/tri-blend-sub.c
b/progs/trivial/tri-blend-sub.c
index d207791108c2998825bebe61378f3658422bd7b8..cc1aeaf4a484304b7a00fe7dc161fb407058cda5 100644
(file)
--- a/
progs/trivial/tri-blend-sub.c
+++ b/
progs/trivial/tri-blend-sub.c
@@
-41,8
+41,9
@@
* to demonstrate the effect order has on alpha blending results.
* Use the 't' key to toggle the order of drawing polygons.
*/
* to demonstrate the effect order has on alpha blending results.
* Use the 't' key to toggle the order of drawing polygons.
*/
-#include <GL/glut.h>
#include <stdlib.h>
#include <stdlib.h>
+#include <GL/glew.h>
+#include <GL/glut.h>
static int leftFirst = GL_TRUE;
static int leftFirst = GL_TRUE;
@@
-136,6
+137,7
@@
int main(int argc, char** argv)
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize (200, 200);
glutCreateWindow (argv[0]);
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize (200, 200);
glutCreateWindow (argv[0]);
+ glewInit();
init();
glutReshapeFunc (reshape);
glutKeyboardFunc (keyboard);
init();
glutReshapeFunc (reshape);
glutKeyboardFunc (keyboard);