Black screen in html5 if scailing is != 100% (Issue-4390) (SOLVED)

Hi
I have black screen in html5. Game using new html5 template.
A black screen appears if browser scaling is != 100%

In console I see this line:
GL_INVALID_VALUE : glViewport: negative width/height

I will be glad of any help. Thanks!

2 Likes

Oh, @AGulev will take a look at this this week.

2 Likes

Created Issue-4390

2 Likes

Could you try to reproduce the issue with Defold 1.2.161, please?

1 Like

I updated the version to the latest and cleared the cache. Yes, it reproduces on defold 1.2.161

2 Likes

Not sure that it same problem. But i aslo have problem in html.
Happened in firefox, in chrome all ok.
Scale is smaller then 100%. 100% and bigger all worked.

In console:

Error: WebGL warning: <InitializeCanvasRenderer>: Requested size 17245x9694 was too large, but resize to 8622x4847 succeeded.
Error: WebGL warning: <InitializeCanvasRenderer>: Requested size 20694x11632 was too large, but resize to 10347x5816 succeeded.
Error: WebGL warning: <InitializeCanvasRenderer>: Requested size 17698x9952 was too large, but resize to 8849x4976 succeeded.
Error: WebGL warning: <InitializeCanvasRenderer>: Requested size 21237x11942 was too large, but resize to 10618x5971 succeeded.
4 Likes

Solved1.2.162

3 Likes