Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have been working on one quite frustrating project lately. My goal is to launch iOS view from Unity (done by using NativeToolkit plugin) and then to launch an OpenGL ES 1.1 component in that view. I have managed to do all this, but i receive some random crashes that do not leave anything behind. XCode shuts down so does the app in device.

I think that maybe if i managed do go so far i should manage to achieve my goal, but then i raised myself a question.

Is it even possible to create opengl ES 1.1 context while using Unity in background (which is using 2.0)? Maybe my crashes are because of this. Although i do manage to create my opengl component and manipulate it and it does crash only once in a while on random locations.

Any help would be very appreciated.

share|improve this question
May be your crashes are due to some leaked objects or some other problems in the code. Cause you can use 1.1 and 2.0 in the same view. – robin Feb 2 '12 at 5:19
Well yes, my research showed me that i actually can use both opengl 1.1 and 2.0 but in different contexts. Though i cannot use two display links. I tried modifying my code forwards and backwards, but i reached some odd results. My code works with iOS 5, but on iOS 4 it crashes with no messages, sometimes whole xcode simply closes down. This is like some forest - deeper you go, more trees you find. – avuthless Feb 2 '12 at 15:00
It means that the problem is definitely not caused due to some leaked objects from my experience. It would be better if you can use instruments to track down your crashes. If your code crashes does it gave you any error logm if yes then paste it here, but if not then can you leave a comment. – robin Feb 2 '12 at 16:09

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.