From eecd33fff488d54d038d84d8676000fad826e940 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Jun 2014 02:17:38 +0300 Subject: fix modernoepngl drawing. Add simple draw test in most renders. --- src/resources/map/maplayer.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/resources/map') diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index c1f1f2d7a..746d547fd 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -276,10 +276,12 @@ void MapLayer::updateOGL(Graphics *const graphics, && debugFlags != MapType::SPECIAL2); MapRowVertexes *const row = new MapRowVertexes(); + logger->log("mTempRows size: %u", (int)mTempRows.size()); mTempRows.push_back(row); Image *lastImage = nullptr; ImageVertexes *imgVert = nullptr; - std::map imgSet; + typedef std::map ImageVertexesMap; + ImageVertexesMap imgSet; for (int y = startY; y < endY; y++) { @@ -323,7 +325,16 @@ void MapLayer::updateOGL(Graphics *const graphics, } } } - graphics->finalize(imgVert); + FOR_EACH (MapRowImages::iterator, it, row->images) + { + graphics->finalize(*it); + } +/* + FOR_EACH (ImageVertexesMap::iterator, it, imgSet) + { + graphics->finalize((*it).second); + } +*/ BLOCK_END("MapLayer::updateOGL") } -- cgit v1.2.3-70-g09d2