Skip to content

Commit

Permalink
rename contextOptions to contextAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkeller committed Jun 16, 2020
1 parent 0b01985 commit 007c274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layouts/Webgl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { getContext, onMount, setContext } from 'svelte';
import { writable } from 'svelte/store';
export let contextOptions = undefined;
export let contextAttributes = undefined;
export let zIndex = undefined;
export let pointerEvents = undefined;
Expand All @@ -29,7 +29,7 @@
*/
const contexts = ['webgl', 'experimental-webgl', 'moz-webgl', 'webkit-3d'];
for (let j = 0; j < contexts.length; j++) {
testGl = canvasElement.getContext(contexts[j], contextOptions);
testGl = canvasElement.getContext(contexts[j], contextAttributes);
if (testGl) {
gl = testGl;
break;
Expand Down

0 comments on commit 007c274

Please sign in to comment.