google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.44k stars 1.84k forks source link

WebGL in v1.51.0 is broken #7693

Closed iliagrigorevdev closed 4 months ago

iliagrigorevdev commented 4 months ago

WebGL samples are broken in v1.51.0, because of the new added assertion in OpenGLDriver::createSwapChainR:

ASSERT_POSTCONDITION(sc->swapChain,
            "createSwapChain(%p, 0x%lx) failed. See logs for details.",
            nativeWindow, flags);

nativeWindow and as a result sc->swapChain are null in WebGL