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.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp
index e3e0d7e19..c2b702fa8 100644
--- a/src/render/normalopenglgraphics.cpp
+++ b/src/render/normalopenglgraphics.cpp
@@ -790,6 +790,14 @@ void NormalOpenGLGraphics::calcPattern(ImageVertexes* const vert,
const int x, const int y,
const int w, const int h) const
{
+ calcPatternInline(vert, image, x, y, w, h);
+}
+
+void NormalOpenGLGraphics::calcPatternInline(ImageVertexes* const vert,
+ const Image *const image,
+ const int x, const int y,
+ const int w, const int h) const
+{
if (!image || !vert)
return;
@@ -934,7 +942,7 @@ void NormalOpenGLGraphics::calcPattern(ImageCollection* const vertCol,
vert = vertCol->currentVert;
}
- calcPattern(vert, image, x, y, w, h);
+ calcPatternInline(vert, image, x, y, w, h);
}
void NormalOpenGLGraphics::calcTileVertexes(ImageVertexes *const vert,
@@ -1554,7 +1562,7 @@ void NormalOpenGLGraphics::drawImageRect(const int x, const int y,
const int w, const int h,
const ImageRect &imgRect)
{
- #include "render/openglgraphics_drawImageRect.hpp"
+ #include "render/graphics_drawImageRect.hpp"
}
void NormalOpenGLGraphics::calcImageRect(ImageVertexes *const vert,
@@ -1562,7 +1570,7 @@ void NormalOpenGLGraphics::calcImageRect(ImageVertexes *const vert,
const int w, const int h,
const ImageRect &imgRect)
{
- #include "render/openglgraphics_calcImageRect.hpp"
+ #include "render/graphics_calcImageRect.hpp"
}
#ifdef DEBUG_BIND_TEXTURE