mirror of https://github.com/axmolengine/axmol.git
Flipping RenderTexture's sprite instead of scaling it by -1
This commit is contained in:
parent
ba38268167
commit
5ddef013ba
|
@ -280,7 +280,7 @@ bool RenderTexture::initWithWidthAndHeight(int w, int h, Texture2D::PixelFormat
|
|||
setSprite(Sprite::createWithTexture(_texture));
|
||||
|
||||
_texture->release();
|
||||
_sprite->setScaleY(-1);
|
||||
_sprite->setFlippedY(true);
|
||||
|
||||
_sprite->setBlendFunc( BlendFunc::ALPHA_PREMULTIPLIED );
|
||||
|
||||
|
|
Loading…
Reference in New Issue