mirror of https://github.com/axmolengine/axmol.git
Merge pull request #12507 from dabingnn/v3_fixClearColor
fix clearcolor bug which has no effect
This commit is contained in:
commit
49e783820e
|
@ -691,6 +691,9 @@ void Director::setDepthTest(bool on)
|
||||||
void Director::setClearColor(const Color4F& clearColor)
|
void Director::setClearColor(const Color4F& clearColor)
|
||||||
{
|
{
|
||||||
_renderer->setClearColor(clearColor);
|
_renderer->setClearColor(clearColor);
|
||||||
|
auto defaultFBO = experimental::FrameBuffer::getOrCreateDefaultFBO(_openGLView);
|
||||||
|
|
||||||
|
if(defaultFBO) defaultFBO->setClearColor(clearColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void GLToClipTransform(Mat4 *transformOut)
|
static void GLToClipTransform(Mat4 *transformOut)
|
||||||
|
|
Loading…
Reference in New Issue