WebGL is not working in Safari Web Browser

Hello Devs,

I have created a game with the build platform WEBGL. It works fine on Chrome and Firefox but when i run it on Safari for Windows i get the following message “Your browser does not support WebGL”, after removing the compatibiltyCheck() function in UnityLoader.js i get another error which says “Your browser does not support any of the required graphics API for this content: WebGL 1.0 , WebGL 2.0”. I am currently using 5.1.7 version of Safari.

Any help would be appreciated, thanks in advance!

Its usually quickest to check for support using e.g.

more here

https://get.webgl.org/get-a-webgl-implementation/

Thanks for the links, my current version supports WebGL. Any suggestions on how to fix this error?

You may need to enable WebGL in Safari.

https://discussions.apple.com/thread/3300585

There is no such option as mentioned in the thread. :confused:

3333696--259986--message.png

Safari for Windows it has no support since May 9, 2012… Safari 5.x support webgl only in Mac… and the support is it is primitive and obsolete.

I too am trying to release webGL 2.0 content but have received complaints that it doesn’t load in Safari. Anyone know if Safari is looking to fix this issue?

What is the workaround, should the graphics automatically fallback to webGL 1.0 somehow?

1 Like

Having the same issue. On my side, I have to tell people to use either Chrome or Firefox on OS X…
I can confirm that Chrome for both Windows 7, 8, 10 and OSX does run Unity WebGL with not too much tweaking efforts, combined with itch.io webpage allows for a very easy way to host the game on their servers.

Maybe on the WebGL player settings something could be done on the WebGL/ES type of settings?

I am trying to get Unity 2018.3.0f2 to work in Safari on a mac. Safari does have Develop->Experimental Features->WebGL 2.0 selected. Unity has been built with Auto Graphics API set to on, or set to WebGL 2.0. Neither work. Scads of WebGL errors in the console.
Is this a Unity issue, or Safari? Unity runs fine in Chrome.

WebGL 2.0 implementation on Safari is known to be broken, however, Unity WebGL content should work fine with WebGL 1.0.

Yes, turning off Auto Graphics API and entering WebGL 1.0 works. Once again, the problem was the driver, not the vehicle :wink:

I am having trouble in safari as well… Light seems to not work in Safari. I am using Auto-Graphics API option. Safari uses openGL 1.0 and Chrome picks 2.0 due to Auto graphics API and the results are different of lights in both browsers.

4191751--371188--Screen Shot 2019-02-07 at 5.15.48 PM.png
4191751--371191--Screen Shot 2019-02-07 at 5.16.35 PM.png

Here are the results for WebGL1.0 for both browsers.

Chrome one is brighter and Safari one is dull.

4191766--371194--Screen Shot 2019-02-07 at 5.27.46 PM.png
4191766--371197--Screen Shot 2019-02-07 at 5.27.55 PM.png

Are you sure Chrome is not using WebGL2.0?
What about Firefox?

Yes I am. I mentioned in the second post that I disabled Auto Graphics API in player settings and only kept openGL 1 in the player settings. and the screen shots are from Chrome and Safari respectively. Checked in Firefox working fine.

Then maybe it’s a bug in Safari? is there any warning/error in the log?

No warnings/errors. I am using Safari 12.0.3. Safari Does support OpenGL ES 2.0.

1 Like

Try to send us a repro so we can determine whether it’s a Safari or Unity bug.

Here is the screenshot of the Error I get only in Safari.

4199530--372274--Screen Shot 2019-02-09 at 11.20.39 PM.png

So, Turns out that spot light is not supported by Safari OpenGL 2.0. I had two spot lights in the box(I created with 6 quads) shape. The Spot Lights in the box had no light effect in the box. Directional Light in the scene only works to create light effect.