summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-16 20:49:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-16 20:49:41 +0300
commite528b472ec803ecdec29e9e19c037c83adf30c1f (patch)
tree802b8811f7776f47b63d9f4aa1f9c64d8989a031
parenta1a952c2b32d04477f3e10c0e40976f71adfa550 (diff)
downloadplus-e528b472ec803ecdec29e9e19c037c83adf30c1f.tar.gz
plus-e528b472ec803ecdec29e9e19c037c83adf30c1f.tar.bz2
plus-e528b472ec803ecdec29e9e19c037c83adf30c1f.tar.xz
plus-e528b472ec803ecdec29e9e19c037c83adf30c1f.zip
Fix compilation without OpenGL support.
-rw-r--r--src/resources/map/map.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index e016654e8..111e7c26b 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -402,6 +402,7 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY)
}
else
{
+#ifdef USE_OPENGL
if (mCachedDraw)
{
if (updateFlag)
@@ -440,6 +441,7 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY)
(*it)->drawOGL(graphics);
}
else
+#endif
{
FOR_EACH (Layers::iterator, it, mDrawUnderLayers)
{