|
|
@@ -325,7 +325,7 @@ void Container::update(const Control* container, const Vector2& offset)
|
|
|
|
|
|
void Container::draw(SpriteBatch* spriteBatch, const Rectangle& clip, bool needsClear, float targetHeight)
|
|
|
{
|
|
|
- if (_skin && needsClear)
|
|
|
+ if (needsClear)
|
|
|
{
|
|
|
GL_ASSERT( glEnable(GL_SCISSOR_TEST) );
|
|
|
GL_ASSERT( glClearColor(0, 0, 0, 0) );
|
|
|
@@ -337,6 +337,10 @@ void Container::draw(SpriteBatch* spriteBatch, const Rectangle& clip, bool needs
|
|
|
|
|
|
needsClear = false;
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ needsClear = true;
|
|
|
+ }
|
|
|
|
|
|
spriteBatch->begin();
|
|
|
Control::drawBorder(spriteBatch, clip);
|