diff options
author | Ira Rice <irarice@gmail.com> | 2008-11-21 02:54:04 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-11-21 02:54:04 +0000 |
commit | 22aa43fac05d9a7f61f776bd03230b36ed853ad5 (patch) | |
tree | c1e8c7a81ac42b49889fdadab54e9f5e27fbab83 /src/openglgraphics.cpp | |
parent | 40f2ec0582932bb21952cb58c5e51ca508206cae (diff) | |
download | mana-22aa43fac05d9a7f61f776bd03230b36ed853ad5.tar.gz mana-22aa43fac05d9a7f61f776bd03230b36ed853ad5.tar.bz2 mana-22aa43fac05d9a7f61f776bd03230b36ed853ad5.tar.xz mana-22aa43fac05d9a7f61f776bd03230b36ed853ad5.zip |
Fixed the linker error that we've been having. Apparently, it was caused
by me accidently removing the include for main.h in openglgraphics.
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r-- | src/openglgraphics.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index 8f47bc1f..eeedcdf1 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -19,28 +19,29 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifdef USE_OPENGL - -#ifndef GL_TEXTURE_RECTANGLE_ARB -#define GL_TEXTURE_RECTANGLE_ARB 0x84F5 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8 -#endif - #include <cstring> #include <SDL.h> -#ifdef __APPLE__ -#include <OpenGL/OpenGL.h> -#endif - #include <guichan/exception.hpp> #include <guichan/image.hpp> #include "log.h" +#include "main.h" #include "openglgraphics.h" #include "resources/image.h" +#ifdef __APPLE__ +#include <OpenGL/OpenGL.h> +#endif + +#ifdef USE_OPENGL + +#ifndef GL_TEXTURE_RECTANGLE_ARB +#define GL_TEXTURE_RECTANGLE_ARB 0x84F5 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8 +#endif + OpenGLGraphics::OpenGLGraphics(): mAlpha(false), mTexture(false), mColorAlpha(false) { |