Flipping RenderTexture's sprite instead of scaling it by -1

This commit is contained in:
Elviss Strazdins 2014-04-17 02:22:34 +03:00
parent ba38268167
commit 5ddef013ba
1 changed files with 1 additions and 1 deletions

View File

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