diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-16 20:49:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-16 20:49:41 +0300 |
commit | e528b472ec803ecdec29e9e19c037c83adf30c1f (patch) | |
tree | 802b8811f7776f47b63d9f4aa1f9c64d8989a031 /src/resources | |
parent | a1a952c2b32d04477f3e10c0e40976f71adfa550 (diff) | |
download | manaplus-e528b472ec803ecdec29e9e19c037c83adf30c1f.tar.gz manaplus-e528b472ec803ecdec29e9e19c037c83adf30c1f.tar.bz2 manaplus-e528b472ec803ecdec29e9e19c037c83adf30c1f.tar.xz manaplus-e528b472ec803ecdec29e9e19c037c83adf30c1f.zip |
Fix compilation without OpenGL support.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/map/map.cpp | 2 |
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) { |