From: Mikko Rasa Date: Tue, 31 Jul 2012 22:36:23 +0000 (+0300) Subject: More compilation fixes X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b68ac997058037ed809560babb3d25d62ff4f910;p=libs%2Fgl.git More compilation fixes --- diff --git a/Build b/Build index da8e64c0..be79a976 100644 --- 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"; diff --git a/demos/texturing.cpp b/demos/texturing.cpp index e618a43c..6a387dec 100644 --- a/demos/texturing.cpp +++ b/demos/texturing.cpp @@ -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) {