Black screen fix for webgl2 to webgl1

0 favourites
  • 3 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • When you export your cordova app and trying convert that android. App show splash screen and 1-2 seconds and screen is black.. nothing showing.. sounds... music works and others...

    Problems is WebGl 2... some page found different quide to fix that, but nothing is perfect.

    My last worked fix change preview.js file construct 2 export html5 folder or c2runtime.js file exported www folder.. line is 510

    this.gl = (this.canvas.getContext("webgl2", attribs) ||

    to

    this.gl = (this.canvas.getContext("webgl", attribs) ||

    preview.js make that permanent and everytime export cordova problems has ignored....

    I hove Scirra fix that problem someday.. Exam put export select box where can select webgl 1 or webgl 2 used.

    Thx. Sinkomies

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for this quick fix. I too hope this issue is fixed. It is still an issue on my apps.

  • But white/black screen only happens if you include ad plugins right?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)