RenderTexture - set opacity modify RGB

This commit is contained in:
Mikhail Shulepov 2016-06-13 23:07:17 +03:00
parent da2ea7e08b
commit 7d6d677983
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);