X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Ftests%2Fmultipal.c;h=4a940169780bcb30c026ec5a18dd9ed090e3a911;hb=ccd13da0fc1f1813b55fc0d2181a6cb0d3b42b0d;hp=54483afa3b22f7af19f4814b0586b844658bb1e4;hpb=8c2a1f0e4d75515b460e6ee4c61a25fdefa97e8c;p=mesa.git diff --git a/progs/tests/multipal.c b/progs/tests/multipal.c index 54483afa3b2..4a940169780 100644 --- a/progs/tests/multipal.c +++ b/progs/tests/multipal.c @@ -1,4 +1,3 @@ -/* $Id: multipal.c,v 1.3 2002/10/18 13:23:19 brianp Exp $ */ /* * Test multitexture and paletted textures. @@ -9,10 +8,12 @@ #include #include #include +#include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ #ifdef _WIN32 #include #endif #define GL_GLEXT_LEGACY +#include #include #include "../util/readtex.c" /* I know, this is a hack. */ @@ -213,7 +214,7 @@ static void SpecialKey( int key, int x, int y ) static void load_tex(const char *fname, int channel) { GLubyte *image; - GLenum format, type; + GLenum format; GLint w, h; GLubyte *grayImage; int i; @@ -350,6 +351,7 @@ int main( int argc, char *argv[] ) glutInitWindowPosition( 0, 0 ); glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE ); glutCreateWindow(argv[0] ); + glewInit(); Init( argc, argv );