]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/texturing.cpp
Adjust the desert pillars demo to recent changes
[libs/gl.git] / demos / texturing.cpp
index e618a43c15ed09badce74022cef4159aed74967b..7a1f779d486335fdd707b1f5530ea522321af059 100644 (file)
@@ -4,7 +4,6 @@
 #include <msp/gl/matrix.h>
 #include <msp/gl/mesh.h>
 #include <msp/gl/meshbuilder.h>
-#include <msp/gl/projection.h>
 #include <msp/gl/texenv.h>
 #include <msp/gl/texture2d.h>
 #include <msp/gl/texturing.h>
@@ -21,7 +20,7 @@ int main()
        GL::Texture2D tex1;
        GL::Texture2D tex2;
 
-       char *data = new char[256*256*4];
+       unsigned char *data = new unsigned char[256*256*4];
        for(unsigned y=0; y<256; ++y)
                for(unsigned x=0; x<256; ++x)
                {