Merge pull request #7328 from dabingnn/v3_rollBackTexture

roll back initWithImage logic
This commit is contained in:
minggo 2014-07-07 17:50:20 +08:00
commit 38e74e7881
1 changed files with 1 additions and 1 deletions

View File

@ -711,7 +711,7 @@ std::string Texture2D::getDescription() const
// implementation Texture2D (Image)
bool Texture2D::initWithImage(Image *image)
{
return initWithImage(image, image->getRenderFormat());
return initWithImage(image, PixelFormat::NONE);
}
bool Texture2D::initWithImage(Image *image, PixelFormat format)