mirror of https://github.com/axmolengine/axmol.git
roll back initWithImage logic
This commit is contained in:
parent
2d504dcc9b
commit
d935b5db38
|
@ -711,7 +711,7 @@ std::string Texture2D::getDescription() const
|
||||||
// implementation Texture2D (Image)
|
// implementation Texture2D (Image)
|
||||||
bool Texture2D::initWithImage(Image *image)
|
bool Texture2D::initWithImage(Image *image)
|
||||||
{
|
{
|
||||||
return initWithImage(image, image->getRenderFormat());
|
return initWithImage(image, PixelFormat::NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Texture2D::initWithImage(Image *image, PixelFormat format)
|
bool Texture2D::initWithImage(Image *image, PixelFormat format)
|
||||||
|
|
Loading…
Reference in New Issue