Question

I have a very simple triangle class that uses NSMutableData to store vertex information. The triangle class models somewhat after the class found in this tutorial. The triangle only draws itself when profiling the app, but not when running it normally. I don't have much experience with NSMutableData, so I'm not sure if this is the cause of the problem. My app also uses GLKit. What is different when profiling an app that would cause this to happen?

Was it helpful?

Solution

Problem solved. Apparently, GLKTextureInfo objects don't work when profiling. I forgot to disable the texture2d0 property of my GLKBaseEffect, so it was trying to draw the texture onto it. It worked when profiling because the textures didn't work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top