fix clearcolor bug which has no effect

This commit is contained in:
Huabing.Xu 2015-06-24 11:40:23 +08:00
parent e574c38a6b
commit ecfe35489c
1 changed files with 3 additions and 0 deletions

View File

@ -691,6 +691,9 @@ void Director::setDepthTest(bool on)
void Director::setClearColor(const Color4F& clearColor)
{
_renderer->setClearColor(clearColor);
auto defaultFBO = experimental::FrameBuffer::getOrCreateDefaultFBO(_openGLView);
if(defaultFBO) defaultFBO->setClearColor(clearColor);
}
static void GLToClipTransform(Mat4 *transformOut)