From e29a87a240fe2f33c51f4e15067122960f667d66 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Dec 2013 18:45:00 +0300 Subject: add drawPatternInline into renders for internal usage. --- src/render/safeopenglgraphics.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/render/safeopenglgraphics.cpp') diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp index b2e7cd3c0..41d9b7f77 100644 --- a/src/render/safeopenglgraphics.cpp +++ b/src/render/safeopenglgraphics.cpp @@ -249,11 +249,16 @@ bool SafeOpenGLGraphics::drawRescaledImage(const Image *const image, return true; } -/* Optimising the functions that Graphics::drawPattern would call, - * so that glBegin...glEnd are outside the main loop. */ void SafeOpenGLGraphics::drawPattern(const Image *const image, const int x, const int y, const int w, const int h) +{ + drawPatternInline(image, x, y, w, h); +} + +void SafeOpenGLGraphics::drawPatternInline(const Image *const image, + const int x, const int y, + const int w, const int h) { FUNC_BLOCK("Graphics::drawPattern", 1) if (!image) -- cgit v1.2.3-70-g09d2