diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-06 15:26:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-06 15:26:12 +0300 |
commit | fdbd1a4c521c537597b63cd4f2262517cab1f81a (patch) | |
tree | a873f6567942bfc8241703eb34a00abc671a2999 /src/normalopenglgraphics.cpp | |
parent | 4fb8f9f0905038f3180f108ec56b2a326ceb3483 (diff) | |
download | plus-fdbd1a4c521c537597b63cd4f2262517cab1f81a.tar.gz plus-fdbd1a4c521c537597b63cd4f2262517cab1f81a.tar.bz2 plus-fdbd1a4c521c537597b63cd4f2262517cab1f81a.tar.xz plus-fdbd1a4c521c537597b63cd4f2262517cab1f81a.zip |
Improve map draw speed in fast opengl.
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r-- | src/normalopenglgraphics.cpp | 4 |
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; |