Fix motion blur

This commit is contained in:
Andras Schmelczer 2026-06-10 21:40:12 +01:00
parent 02453c2a97
commit d2b7eb29fb

View file

@ -31,11 +31,11 @@ export const getUniversalRenderingContext = (
result.isWebGL2 = true;
}
} else {
result = (canvas.getContext('webgl') ||
canvas.getContext('experimental-webgl', {
...contextAttributes,
alpha: false,
})) as UniversalRenderingContext;
result = (canvas.getContext('webgl', contextAttributes) ||
canvas.getContext(
'experimental-webgl',
contextAttributes
)) as UniversalRenderingContext;
if (!result) {
throw new Error('Neither WebGL nor WebGL2 is supported');