mirror of https://github.com/axmolengine/axmol.git
RenderTexture - set opacity modify RGB
This commit is contained in:
parent
da2ea7e08b
commit
7d6d677983
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue