From 7d6d677983450bb4f01f3d0e86cb5c01b829a515 Mon Sep 17 00:00:00 2001 From: Mikhail Shulepov Date: Mon, 13 Jun 2016 23:07:17 +0300 Subject: [PATCH] RenderTexture - set opacity modify RGB --- cocos/2d/CCRenderTexture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/2d/CCRenderTexture.cpp b/cocos/2d/CCRenderTexture.cpp index 8c82ac5cb5..8c9fc043df 100644 --- a/cocos/2d/CCRenderTexture.cpp +++ b/cocos/2d/CCRenderTexture.cpp @@ -329,6 +329,7 @@ bool RenderTexture::initWithWidthAndHeight(int w, int h, Texture2D::PixelFormat _sprite->setFlippedY(true); _sprite->setBlendFunc( BlendFunc::ALPHA_PREMULTIPLIED ); + _sprite->setOpacityModifyRGB(true); glBindRenderbuffer(GL_RENDERBUFFER, oldRBO); glBindFramebuffer(GL_FRAMEBUFFER, _oldFBO);