Integrating with AngularJS application

Discussion and feedback on Construct 2

Post » Wed Oct 21, 2015 9:15 pm

When I export to HTML 5 using the Normal style and then try to integrate the HTML with an AngularJS application everything works fine the first time the page containing the game is loaded, however when I navigate away from the page and then back to the page (using AngularJS routes) the c2runtime fails with the following error:

c2runtime.js:2284 WebGL: INVALID_OPERATION: bindTexture: object not from this context.

Which is this piece of code:

Code: Select all
   GLBatchJob.prototype.doSetTexture = function ()
   {, this.texParam);

If I reload the page rather than navigating using the links in our application then all works fine again.

I'm not sure if this is a bug with Construct2 or if I'm doing something wrong. The game needs to be integrated with our AngularJS application as it it using AngularJS services and authentication mechanisms to fetch game history. I contemplated posting this as a bug however a Capx by itself won't demonstrate the problem so I've posted in this more general forum instead in case others have come across the same problem and found a solution.
Posts: 3
Reputation: 181

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 15 guests