File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -734,9 +734,9 @@ void PUBillboardChain::setBlendFunc(const BlendFunc& blendFunc)
734
734
735
735
GLuint PUBillboardChain::getTextureName ()
736
736
{
737
- if (TextureCache ::getInstance ()->isDirty ())
737
+ if (Director ::getInstance()-> getTextureCache ()->isDirty ())
738
738
{
739
- if (TextureCache ::getInstance ()->getTextureForKey (_texFile) == nullptr )
739
+ if (Director ::getInstance()-> getTextureCache ()->getTextureForKey (_texFile) == nullptr )
740
740
{
741
741
_texture = nullptr ;
742
742
this ->init (" " );
Original file line number Diff line number Diff line change @@ -589,9 +589,9 @@ bool PUParticle3DEntityRender::initRender( const std::string &texFile )
589
589
590
590
GLuint PUParticle3DEntityRender::getTextureName ()
591
591
{
592
- if (TextureCache ::getInstance ()->isDirty ())
592
+ if (Director ::getInstance()-> getTextureCache ()->isDirty ())
593
593
{
594
- if (TextureCache ::getInstance ()->getTextureForKey (_texFile) == nullptr )
594
+ if (Director ::getInstance()-> getTextureCache ()->getTextureForKey (_texFile) == nullptr )
595
595
{
596
596
_texture = nullptr ;
597
597
this ->initRender (" " );
You can’t perform that action at this time.
0 commit comments