summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.cpp
diff options
context:
space:
mode:
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;