Merge pull request #12507 from dabingnn/v3_fixClearColor

fix clearcolor bug which has no effect
This commit is contained in:
pandamicro 2015-06-24 15:58:53 +08:00
commit 49e783820e
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)