Merge remote branch 'origin/7.8'
[mesa.git] / progs / demos / paltex.c
index 206e85f102961407f757e925946fe10fd38540f9..5d4b8662b5cb8d050f9522be2ec9bfc9943eca02 100644 (file)
@@ -11,6 +11,7 @@
 #ifdef _WIN32
 #include <windows.h>
 #endif
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 
@@ -247,15 +248,14 @@ static void Init2( void )
 
 int main( int argc, char *argv[] )
 {
-   glutInit( &argc, argv );
-   glutInitWindowPosition( 0, 0 );
    glutInitWindowSize( 400, 300 );
-
+   glutInit( &argc, argv );
    glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE );
-
    glutCreateWindow(argv[0]);
+   glewInit();
 
    Init();
+   (void) Init2; /* silence warning */
 
    glutReshapeFunc( Reshape );
    glutKeyboardFunc( Key );