From 8f3ae497552ab7d3ddea7c34a411e7fdaa8722e4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 25 Jun 2008 09:21:13 +0000 Subject: [PATCH] Add a missing #include Fix gcc 4.3 style warnings --- source/program.cpp | 1 + source/texture3d.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/program.cpp b/source/program.cpp index 2ed6fba8..eed8b87a 100644 --- a/source/program.cpp +++ b/source/program.cpp @@ -5,6 +5,7 @@ Copyright © 2007 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ +#include #include "arb_shader_objects.h" #include "arb_vertex_shader.h" #include "except.h" diff --git a/source/texture3d.cpp b/source/texture3d.cpp index fdf61cde..a2d371e7 100644 --- a/source/texture3d.cpp +++ b/source/texture3d.cpp @@ -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*dh; d>>=2) ; + for(; d*d