Merge pull request #15834 from Shulepov/rendertexture_opacity_modify_rgb

RenderTexture - set opacity modify RGB
This commit is contained in:
minggo 2016-06-16 10:52:21 +08:00 committed by GitHub
commit b0f3d43414
1 changed files with 1 additions and 0 deletions

View File

@ -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);