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; result.isWebGL2 = true;
} }
} else { } else {
result = (canvas.getContext('webgl') || result = (canvas.getContext('webgl', contextAttributes) ||
canvas.getContext('experimental-webgl', { canvas.getContext(
...contextAttributes, 'experimental-webgl',
alpha: false, contextAttributes
})) as UniversalRenderingContext; )) as UniversalRenderingContext;
if (!result) { if (!result) {
throw new Error('Neither WebGL nor WebGL2 is supported'); throw new Error('Neither WebGL nor WebGL2 is supported');