summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-06 15:26:12 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-06 15:26:12 +0300
commitfdbd1a4c521c537597b63cd4f2262517cab1f81a (patch)
treea873f6567942bfc8241703eb34a00abc671a2999 /src/normalopenglgraphics.cpp
parent4fb8f9f0905038f3180f108ec56b2a326ceb3483 (diff)
downloadmv-fdbd1a4c521c537597b63cd4f2262517cab1f81a.tar.gz
mv-fdbd1a4c521c537597b63cd4f2262517cab1f81a.tar.bz2
mv-fdbd1a4c521c537597b63cd4f2262517cab1f81a.tar.xz
mv-fdbd1a4c521c537597b63cd4f2262517cab1f81a.zip
Improve map draw speed in fast opengl.
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r--src/normalopenglgraphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normalopenglgraphics.cpp b/src/normalopenglgraphics.cpp
index 4f3fd2aa2..b0e09b9eb 100644
--- a/src/normalopenglgraphics.cpp
+++ b/src/normalopenglgraphics.cpp
@@ -802,12 +802,12 @@ void NormalOpenGLGraphics::calcImagePattern(GraphicsVertexes *const vert,
}
void NormalOpenGLGraphics::calcTile(ImageVertexes *const vert,
+ const Image *const image,
int dstX, int dstY)
{
- if (!vert)
+ if (!vert || !image)
return;
- Image *image = vert->image;
const int srcX = image->mBounds.x;
const int srcY = image->mBounds.y;