diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-30 18:45:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-30 18:45:00 +0300 |
commit | e29a87a240fe2f33c51f4e15067122960f667d66 (patch) | |
tree | ec58d6c28e3ce18966b32495df860bc85aa94f87 /src/render/safeopenglgraphics.cpp | |
parent | 00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e (diff) | |
download | mv-e29a87a240fe2f33c51f4e15067122960f667d66.tar.gz mv-e29a87a240fe2f33c51f4e15067122960f667d66.tar.bz2 mv-e29a87a240fe2f33c51f4e15067122960f667d66.tar.xz mv-e29a87a240fe2f33c51f4e15067122960f667d66.zip |
add drawPatternInline into renders for internal usage.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r-- | src/render/safeopenglgraphics.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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,12 +249,17 @@ 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) return; |