summaryrefslogtreecommitdiff
path: root/src/render/normalopenglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/normalopenglgraphics.cpp')
-rw-r--r--src/render/normalopenglgraphics.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp
index c2b702fa8..0ab2e88fa 100644
--- a/src/render/normalopenglgraphics.cpp
+++ b/src/render/normalopenglgraphics.cpp
@@ -895,11 +895,11 @@ void NormalOpenGLGraphics::calcTileCollection(ImageCollection *const vertCol,
vertCol->currentVert = vert;
vert->image = image;
vertCol->draws.push_back(vert);
- calcTileVertexes(vert, image, x, y);
+ calcTileVertexesInline(vert, image, x, y);
}
else
{
- calcTileVertexes(vertCol->currentVert, image, x, y);
+ calcTileVertexesInline(vertCol->currentVert, image, x, y);
}
}
@@ -949,6 +949,13 @@ void NormalOpenGLGraphics::calcTileVertexes(ImageVertexes *const vert,
const Image *const image,
int dstX, int dstY) const
{
+ calcTileVertexesInline(vert, image, dstX, dstY);
+}
+
+void NormalOpenGLGraphics::calcTileVertexesInline(ImageVertexes *const vert,
+ const Image *const image,
+ int dstX, int dstY) const
+{
if (!vert || !image)
return;