From e528b472ec803ecdec29e9e19c037c83adf30c1f Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sat, 16 May 2015 20:49:41 +0300
Subject: Fix compilation without OpenGL support.

---
 src/resources/map/map.cpp | 2 ++
 1 file changed, 2 insertions(+)

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)
             {
-- 
cgit v1.2.3-70-g09d2