Fix motion blur
This commit is contained in:
parent
02453c2a97
commit
d2b7eb29fb
1 changed files with 5 additions and 5 deletions
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue