summaryrefslogtreecommitdiff
path: root/src/render/modernopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-07 17:57:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-07 17:57:21 +0300
commit3173688b7c1a1027257aa057039bd50738ac8bb5 (patch)
treeba415bfcc8e196a1e92eeed851778f957265dee6 /src/render/modernopenglgraphics.cpp
parent852617a2ea3cfe83c1d0aec134d9369aa5c3af7b (diff)
downloadmanaplus-3173688b7c1a1027257aa057039bd50738ac8bb5.tar.gz
manaplus-3173688b7c1a1027257aa057039bd50738ac8bb5.tar.bz2
manaplus-3173688b7c1a1027257aa057039bd50738ac8bb5.tar.xz
manaplus-3173688b7c1a1027257aa057039bd50738ac8bb5.zip
In renderers in function calcTileVertexes add non null attributes.
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r--src/render/modernopenglgraphics.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp
index 6f02f022c..8f3c76ea5 100644
--- a/src/render/modernopenglgraphics.cpp
+++ b/src/render/modernopenglgraphics.cpp
@@ -756,9 +756,6 @@ void ModernOpenGLGraphics::calcTileVertexesInline(ImageVertexes *
int dstX,
int dstY) const restrict2
{
- if (!vert || !image)
- return;
-
const SDL_Rect &imageRect = image->mBounds;
const int srcX = imageRect.x;
const int srcY = imageRect.y;