Skip to content

Commit a671afe

Browse files
greggmanphemavax
authored andcommitted
Video and WebGL are a mess!!!
There is no official way to know when it's safe to read a video element. Do it wrong and your app breaks. Browsers change what the requirements are every few years breaking any example using video and WebGL
1 parent 14838d3 commit a671afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

color-adjust/color-adjust.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@
609609
target[1] = g_targetHeight;
610610
target[2] = Math.cos(g_eyeClock + Math.PI) * g_targetRadius;
611611

612-
if (copyVideo || setVideo) {
612+
if (video.currentTime > 0 && (copyVideo || setVideo)) {
613613
if (setVideo) {
614614
video.currentTime = audio.currentTime;
615615
}

0 commit comments

Comments
 (0)