YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

Opera GX: Crashes when WebGL is disabled in the browser #3769

Open iampremo opened 1 year ago

iampremo commented 1 year ago

User reported a bug in ticket [Ticket #189215]

 

However, it seems like this is working as intended for now, as per the following exchange on slack.

"Russell Kay  [4:41 PM] We should just fail gracefully if WebGL is is not available

Russell Kay  [4:41 PM] we do expect WebGL to be there though

Daniel Cleaton  [10:06 AM] Fail gracefully to the canvas method as they're asking, or to a dialog telling them that WebGL is not enabled and must be re-enabled to run the game?"

Adding this as FR after checking with QA.

Here's user's original message:

 

Bug Type: Bug with in-game functionality Ide Version: 23.1.1.393 Runtime Version: 2.3.5.458 Platforms: Opera GX (Beta) Components: In-Game Functionality

Description: Hello,

Here are the steps to reproduce.

1- Launch Opera GX with the parameter "-disable-webgl" to disable WebGL, e.g.: "C:\Users\USERNAME\AppData\Local\Programs\Opera GX\launcher.exe" -disable-webgl

2- Load any project in GMS2 and compile to Opera GX.

3- Notice the game crashes on startup. The JavaScript console logs the following message: Uncaught TypeError: Cannot read properties of undefined (reading 'depthRange')

This should either fail gracefully or (better imho) fallback to Canvas 2D even though this API is much more limited.

Thank you.

James-Dolinar commented 9 months ago

I've recently had some reports from users about my gx.games games saying they got this error. A dialog or something else notifying the user of what is going on would be nice.