From fdbd1a4c521c537597b63cd4f2262517cab1f81a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Oct 2012 15:26:12 +0300 Subject: Improve map draw speed in fast opengl. --- src/normalopenglgraphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/normalopenglgraphics.cpp') 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; -- cgit v1.2.3-70-g09d2