Integrating with AngularJS application

0 favourites
  • 1 posts
From the Asset Store
Integrate Telegram Payments API into your Construct 3 projects for seamless in-app payment processing.
  • 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:

    	GLBatchJob.prototype.doSetTexture = function ()
    	{
    		this.gl.bindTexture(this.gl.TEXTURE_2D, this.texParam);
    	};
    [/code:3pa1kfpc]
    
    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.
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)