summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-16 00:00:57 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-16 00:25:36 +0300
commitb30df9b843eae2128431320308510f13296e3e7f (patch)
treeaeaebc3595508700e2b7313c2252b446212d25d5 /src/graphicsmanager.cpp
parentb5f95469e5e8970407036471a2ae37148f044481 (diff)
downloadmv-b30df9b843eae2128431320308510f13296e3e7f.tar.gz
mv-b30df9b843eae2128431320308510f13296e3e7f.tar.bz2
mv-b30df9b843eae2128431320308510f13296e3e7f.tar.xz
mv-b30df9b843eae2128431320308510f13296e3e7f.zip
Fix compilation errors.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp6
1 files changed, 6 insertions, 0 deletions
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
}