mirror of https://github.com/axmolengine/axmol.git
related to github issue #15776 This is a PR for v3.13 branch
This commit is contained in:
parent
1cb506a5c5
commit
59a646341c
|
@ -11,6 +11,13 @@
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// IMPORTANT:
|
||||||
|
// THIS TEST WILL CRASH ON TextureCache::addImage()
|
||||||
|
// THIS IS NOT A BUG
|
||||||
|
// It is expected to crash there
|
||||||
|
//
|
||||||
bool Bug15776Layer::init()
|
bool Bug15776Layer::init()
|
||||||
{
|
{
|
||||||
if (BugsTestBase::init())
|
if (BugsTestBase::init())
|
||||||
|
@ -24,3 +31,13 @@ bool Bug15776Layer::init()
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string Bug15776Layer::title() const
|
||||||
|
{
|
||||||
|
return "Testing Issue #15776";
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string Bug15776Layer::subtitle() const
|
||||||
|
{
|
||||||
|
return "It should crash on TextureCache::addImage()";
|
||||||
|
}
|
||||||
|
|
|
@ -17,6 +17,9 @@ public:
|
||||||
CREATE_FUNC(Bug15776Layer);
|
CREATE_FUNC(Bug15776Layer);
|
||||||
|
|
||||||
virtual bool init() override;
|
virtual bool init() override;
|
||||||
|
|
||||||
|
virtual std::string title() const override;
|
||||||
|
virtual std::string subtitle() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue