mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7328 from dabingnn/v3_rollBackTexture
roll back initWithImage logic
This commit is contained in:
commit
38e74e7881
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue