summaryrefslogtreecommitdiff
path: root/src/gui/widgets/basiccontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-25 20:43:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-25 21:33:18 +0300
commitbea613d8ba11a64ccf36a01735f2839894ca9476 (patch)
tree8d5de8bf983f13aec50b3f1234db09b88dff26d3 /src/gui/widgets/basiccontainer.cpp
parent80b0caa35e4b84b745daef7e4102b428539cdee5 (diff)
downloadmv-bea613d8ba11a64ccf36a01735f2839894ca9476.tar.gz
mv-bea613d8ba11a64ccf36a01735f2839894ca9476.tar.bz2
mv-bea613d8ba11a64ccf36a01735f2839894ca9476.tar.xz
mv-bea613d8ba11a64ccf36a01735f2839894ca9476.zip
Fix some issues in safe OpenGL renderer after last changes.
Diffstat (limited to 'src/gui/widgets/basiccontainer.cpp')
-rw-r--r--src/gui/widgets/basiccontainer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/basiccontainer.cpp b/src/gui/widgets/basiccontainer.cpp
index 2ab185a61..6d09cb64b 100644
--- a/src/gui/widgets/basiccontainer.cpp
+++ b/src/gui/widgets/basiccontainer.cpp
@@ -63,6 +63,8 @@
#include "gui/widgets/basiccontainer.h"
+#include "render/renderers.h"
+
#include <algorithm>
#include "debug.h"
@@ -322,7 +324,10 @@ void BasicContainer::drawChildren(Graphics* graphics)
graphics->pushClipArea(widget->mDimension);
BLOCK_START("BasicContainer::drawChildren 2")
- widget->draw(graphics);
+ if (isBatchDrawRenders(openGLMode))
+ widget->draw(graphics);
+ else
+ widget->safeDraw(graphics);
BLOCK_END("BasicContainer::drawChildren 2")
graphics->popClipArea();
}