diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-04 00:49:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-04 00:49:33 +0300 |
commit | db57c5be30ff61394b7fff8b0c7fa0101e66d6c0 (patch) | |
tree | 5bd683f3aeb3cfef458eaa45726f3e06c721b3b6 /src/gui/widgets/scrollarea.cpp | |
parent | 1485b138c5b906546381f1ae4a91553a3c2fc6c4 (diff) | |
download | manaplus-db57c5be30ff61394b7fff8b0c7fa0101e66d6c0.tar.gz manaplus-db57c5be30ff61394b7fff8b0c7fa0101e66d6c0.tar.bz2 manaplus-db57c5be30ff61394b7fff8b0c7fa0101e66d6c0.tar.xz manaplus-db57c5be30ff61394b7fff8b0c7fa0101e66d6c0.zip |
improve checking for batch draw mode support by renderer.
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r-- | src/gui/widgets/scrollarea.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index b537dd2ed..948014cca 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -257,7 +257,7 @@ void ScrollArea::draw(gcn::Graphics *graphics) BLOCK_START("ScrollArea::draw") if (mVBarVisible || mHBarVisible) { - if (openGLMode != RENDER_SAFE_OPENGL) + if (isBatchDrawRenders(openGLMode)) { if (!mOpaque) updateCalcFlag(graphics); @@ -358,7 +358,7 @@ void ScrollArea::drawFrame(gcn::Graphics *graphics) updateCalcFlag(graphics); - if (openGLMode != RENDER_SAFE_OPENGL) + if (isBatchDrawRenders(openGLMode)) { if (mRedraw) { |