]> git.tdb.fi Git - libs/gl.git/commitdiff
More compilation fixes
authorMikko Rasa <tdb@tdb.fi>
Tue, 31 Jul 2012 22:36:23 +0000 (01:36 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 31 Jul 2012 22:36:23 +0000 (01:36 +0300)
Build
demos/texturing.cpp

diff --git a/Build b/Build
index da8e64c0165f4455764de5b5eb93d1af570fcfd5..be79a976edd6eeb3394f4392b573d610397a07a7 100644 (file)
--- a/Build
+++ b/Build
@@ -3,6 +3,7 @@ package "mspgl"
        version "1.1";
        description "Lightweight C++/OpenGL graphics engine";
 
+       require "mspcore";
        require "mspdatafile";
        require "mspgui";
        require "opengl";
index e618a43c15ed09badce74022cef4159aed74967b..6a387dec75bda970dbe0cac73f1ac3e635729760 100644 (file)
@@ -21,7 +21,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)
                {