mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15834 from Shulepov/rendertexture_opacity_modify_rgb
RenderTexture - set opacity modify RGB
This commit is contained in:
commit
b0f3d43414
|
@ -329,6 +329,7 @@ bool RenderTexture::initWithWidthAndHeight(int w, int h, Texture2D::PixelFormat
|
||||||
_sprite->setFlippedY(true);
|
_sprite->setFlippedY(true);
|
||||||
|
|
||||||
_sprite->setBlendFunc( BlendFunc::ALPHA_PREMULTIPLIED );
|
_sprite->setBlendFunc( BlendFunc::ALPHA_PREMULTIPLIED );
|
||||||
|
_sprite->setOpacityModifyRGB(true);
|
||||||
|
|
||||||
glBindRenderbuffer(GL_RENDERBUFFER, oldRBO);
|
glBindRenderbuffer(GL_RENDERBUFFER, oldRBO);
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, _oldFBO);
|
glBindFramebuffer(GL_FRAMEBUFFER, _oldFBO);
|
||||||
|
|
Loading…
Reference in New Issue