webgl-fundamentals icon indicating copy to clipboard operation
webgl-fundamentals copied to clipboard

webgl-state-diagram use-2-programs does not work

Open letochagone opened this issue 1 year ago • 6 comments

https://webglfundamentals.org/webgl/lessons/resources/webgl-state-diagram.html?exampleId=use-2-programs#no-help

there are calls to the function compileShadersAndLinkProgram, it seems to me that the function calls do not work

image

letochagone avatar Nov 23 '22 12:11 letochagone

What do you mean by "do not work"?

https://user-images.githubusercontent.com/234804/203619459-0abd3089-05e2-4d4d-be78-ed35d92c1901.mp4

greggman avatar Nov 23 '22 18:11 greggman

image

the script stops on firefox 106.0.5

letochagone avatar Nov 24 '22 06:11 letochagone

image

ah! but it works in google chrome

letochagone avatar Nov 24 '22 06:11 letochagone

It's a bug in firefox

https://bugzilla.mozilla.org/show_bug.cgi?id=1645092

greggman avatar Nov 24 '22 08:11 greggman

Hacked in a workaround for the firefox bug

https://github.com/gfxfundamentals/webgl-fundamentals/commit/e6d75517941ff1a9895a1a4d051ac32b08b97933

greggman avatar Nov 24 '22 08:11 greggman