starbugs / icedcoffee

A lightweight OpenGL user interface framework written in Objective-C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concurrent IcedCoffee view controllers on iOS device and Apple TV

opened this issue · comments

I have posted some information on the Google Group regarding trying to run two IcedCoffee host view controllers on an iOS device screen and on an apple TV via airplay mirroring.

Looking at the icedcoffee code it appears that the GL context switching in the ICHostViewControlleIOS class should handle the case where both view controllers might be updated by the same thread.

But as soon as I instantiate the second controller (creation order is not important), both displays become corrupt and the App will terminate with a message like:

Assertion failed: (stack->item_count && "Cannot pop an empty stack"), function km_mat4_stack_pop, file /Users/andy/projects/icedcoffee/3rd-party/kazmath/src/GL/mat4stack.c, line 63.

I wil keep posting info to the Group as I find anything more.