diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-25 20:43:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-25 21:33:18 +0300 |
commit | bea613d8ba11a64ccf36a01735f2839894ca9476 (patch) | |
tree | 8d5de8bf983f13aec50b3f1234db09b88dff26d3 /src/gui/widgets/basiccontainer.cpp | |
parent | 80b0caa35e4b84b745daef7e4102b428539cdee5 (diff) | |
download | plus-bea613d8ba11a64ccf36a01735f2839894ca9476.tar.gz plus-bea613d8ba11a64ccf36a01735f2839894ca9476.tar.bz2 plus-bea613d8ba11a64ccf36a01735f2839894ca9476.tar.xz plus-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.cpp | 7 |
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(); } |