From b30df9b843eae2128431320308510f13296e3e7f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 16 Aug 2012 00:00:57 +0300 Subject: Fix compilation errors. --- src/graphicsmanager.cpp | 6 ++++++ src/gui/questswindow.h | 1 + src/utils/copynpaste.cpp | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 5a02b1776..86814b4be 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -214,6 +214,7 @@ Graphics *GraphicsManager::createGraphics() void GraphicsManager::updateExtensions() { +#ifdef USE_OPENGL mExtensions.clear(); logger->log1("opengl extensions: "); if (checkGLVersion(3, 0)) @@ -238,10 +239,12 @@ void GraphicsManager::updateExtensions() splitToStringSet(mExtensions, extensions, ' '); } +#endif } void GraphicsManager::updatePlanformExtensions() { +#ifdef USE_OPENGL SDL_SysWMinfo info; SDL_VERSION(&info.version); if (SDL_GetWMInfo(&info)) @@ -315,6 +318,7 @@ void GraphicsManager::updatePlanformExtensions() } #endif } +#endif } bool GraphicsManager::supportExtension(const std::string &ext) @@ -552,6 +556,7 @@ void GraphicsManager::deleteFBO(FBOInfo *fbo) void GraphicsManager::initOpenGLFunctions() { +#ifdef USE_OPENGL if (!checkGLVersion(1, 1)) return; @@ -591,4 +596,5 @@ void GraphicsManager::initOpenGLFunctions() #ifdef WIN32 assignFunction(wglGetExtensionsString, "wglGetExtensionsStringARB"); #endif +#endif } diff --git a/src/gui/questswindow.h b/src/gui/questswindow.h index 0c4d5789e..706f6ba1c 100644 --- a/src/gui/questswindow.h +++ b/src/gui/questswindow.h @@ -30,6 +30,7 @@ #include #include +#include class Button; class BrowserBox; diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp index 94cfe9589..461de1001 100644 --- a/src/utils/copynpaste.cpp +++ b/src/utils/copynpaste.cpp @@ -33,8 +33,9 @@ # include "config.h" #endif +#include "utils/copynpaste.h" + #include -#include "copynpaste.h" #include "debug.h" -- cgit v1.2.3-70-g09d2