]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.cpp
Add a missing #include
[libs/gl.git] / source / texture3d.cpp
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;