blackmoondev Posted December 1, 2017 Share Posted December 1, 2017 I've run into a small problem with scaling of my Phaser game on P9 Lite running Chrome - here's a video of the problem: Any ideas what might be causing that? On all the desktop browsers, iOS and another Android device I have the games scales all good. Here's the link if you would like to see the code : http://rc.blackmoondev.com/cp/ Link to comment Share on other sites More sharing options...
blackmoondev Posted December 8, 2017 Author Share Posted December 8, 2017 I get a lot of that warnings in the console (only on this device, I don't get that on desktop where the game scales normally) : phaser.min.js:3 WebGL: INVALID_VALUE: vertexAttribPointer: index out of range Could that be the cause? Link to comment Share on other sites More sharing options...
samme Posted December 8, 2017 Share Posted December 8, 2017 No, the WebGL warning is probably unrelated. You can try game.scale.compatibility.canExpandParent = false; game.scale.refresh(); in Boot. blackmoondev 1 Link to comment Share on other sites More sharing options...
blackmoondev Posted December 9, 2017 Author Share Posted December 9, 2017 12 hours ago, samme said: No, the WebGL warning is probably unrelated. You can try game.scale.compatibility.canExpandParent = false; game.scale.refresh(); in Boot. Thanks, but this didn't fix it :/ Link to comment Share on other sites More sharing options...
samme Posted December 9, 2017 Share Posted December 9, 2017 If you can run code in the console, try the snippet in https://codepen.io/samme/details/BwadLM/ (Description). Link to comment Share on other sites More sharing options...
Recommended Posts