Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17117

Texture Issue with device - works on simulator [SOLVED]

$
0
0

@Maxxx wrote:

Code

_subterraneanTexture = Director::getInstance()->getTextureCache()->addImage(imageName);

Where imageName is just a std::string = "somerock.png"

somerock.png is in the Resources folder and is included in the project.

Run on Simulator - all good, _subterraneanTexture has a value
Run on Device - No Good, _subterraneanTexture is NULL

I am sure it's going to be something obvious, but just can't figure it out right now!!

Save me the trouble of debugging it - what am I missing?!

*** SOLVED ***
It turns out that I had
Remove Text Metadata from PNG Files = Yes in project Build Settings.
This seemed to be causing it to fail to read the PNG on the device!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>