summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
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
}