roll back initWithImage logic

This commit is contained in:
Huabing.Xu 2014-07-07 17:35:05 +08:00
parent 2d504dcc9b
commit d935b5db38
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)