diff --git a/src/graphics/graphics-library/universal-rendering-context.ts b/src/graphics/graphics-library/universal-rendering-context.ts index 98d8707..7cc8971 100644 --- a/src/graphics/graphics-library/universal-rendering-context.ts +++ b/src/graphics/graphics-library/universal-rendering-context.ts @@ -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');