Skip to content

Commit 9ea2645

Browse files
committed
safari 15 fixes webgl support
1 parent ae27ebe commit 9ea2645

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

webgl/lessons/webgl-shadows.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -944,17 +944,15 @@ depth textures, only depth renderbuffers, that means there is no guarantee
944944
that using a depth texture will ever work, at least according to the spec.
945945
</p>
946946
<p>In practice it appears that most drivers themselves work with just a depth
947-
texture attached and no other attachments. Unfortunately Safari, at least as of
948-
February 2020, does not allow that combination to work. It requires there be a
947+
texture attached and no other attachments. Unfortunately Safari pre version 15 does not allow that combination to work. It requires there be a
949948
color attachment as well, most likely it requires an <code>RGBA</code>/<code>UNSIGNED_BYTE</code>
950949
color attachment. The fact that it fails without it is within the specs above.
951950
</p>
952951
<p>All that is the long way of saying we need the unused color texture to work
953-
in Safari. It also sadly means there's still no guarantee that things will work
952+
in old Safari. It also sadly means there's still no guarantee that things will work
954953
across all drivers/gpus/browsers. Fortunately it appears that combination does
955954
work everywhere. Also fortunately OpenGL ES 3.0 on which <a href="https://webgl2fundamentals.org">WebGL2</a>
956-
is based changed the spec and requires many more combinations to just work. Unfortunately
957-
as of February 2020 <a href="https://webgl2fundamentals.org/webgl/lessons/webgl-getting-webgl2.html">Safari does not support WebGL2</a>.
955+
is based changed the spec and requires many more combinations to just work.
958956
So, in WebGL1, we need to add the unused color texture and then cross our fingers. 😭
959957
</p>
960958
</div>

0 commit comments

Comments
 (0)