mirror of https://github.com/axmolengine/axmol.git
fix clearcolor bug which has no effect
This commit is contained in:
parent
e574c38a6b
commit
ecfe35489c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue