Jump to content

Too many WebGL contexts. Oldest context will be lost.


Recommended Posts

Hi! I'm working on a project where I have a Map scene. I remove and add this scene to the phaser game a lot because I have to populate map depending upon the data I provide to this scene. After updating the map many times, it just vanishes and doesn't render and it happens randomly. I'm creating some images and texts in the map scene that change depending upon the data I pass in Init function of the scene.

let map = new Map();

I'm also attaching a screen shot. Any help would be much appreciated, Thanks!


Link to comment
Share on other sites

The number of simultaneous webgl contexts is limited by browser so if you have multiple tabs open with a webgl context or a page with multiple webgl contexts they addup. Or you graphic card is limited, i don"t know ; post a demo or your code somewhere so people can test on their machine

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...