]> git.tdb.fi Git - libs/gl.git/commitdiff
Add a missing #include
authorMikko Rasa <tdb@tdb.fi>
Wed, 25 Jun 2008 09:21:13 +0000 (09:21 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 25 Jun 2008 09:21:13 +0000 (09:21 +0000)
Fix gcc 4.3 style warnings

source/program.cpp
source/texture3d.cpp

index 2ed6fba8800c9f804127827ec85eca65a95bcea9..eed8b87a469a1ccf3f58cdb9f43a5fba1c10764d 100644 (file)
@@ -5,6 +5,7 @@ Copyright © 2007 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
+#include <algorithm>
 #include "arb_shader_objects.h"
 #include "arb_vertex_shader.h"
 #include "except.h"
index fdf61cde4366600f2f37438a5824f25299b07f87..a2d371e7856c108b6c7eac2de3284119bc735e1a 100644 (file)
@@ -68,8 +68,8 @@ void Texture3D::load_image(const string &fn, int dp)
        }
        else if(dp==-2)
        {
-               for(d=h; d*d>h; d>>=2);
-               for(; d*d<h; ++d);
+               for(d=h; d*d>h; d>>=2) ;
+               for(; d*d<h; ++d) ;
                if(d*d!=h)
                        throw IncompatibleData("Could not find a square root of texture height");
                h=d;