mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 03:24:32 -05:00
Fix typo in engine.js
This commit is contained in:
parent
7275fb6170
commit
e06a56eac8
1 changed files with 2 additions and 2 deletions
|
@ -267,9 +267,9 @@
|
||||||
try {
|
try {
|
||||||
var testCanvas = document.createElement('canvas');
|
var testCanvas = document.createElement('canvas');
|
||||||
if (majorVersion === 1) {
|
if (majorVersion === 1) {
|
||||||
testContext = testCanvas.getContext('webgl') || testCanvas.getContet('experimental-webgl');
|
testContext = testCanvas.getContext('webgl') || testCanvas.getContext('experimental-webgl');
|
||||||
} else if (majorVersion === 2) {
|
} else if (majorVersion === 2) {
|
||||||
testContext = testCanvas.getContext('webgl2') || testCanvas.getContet('experimental-webgl2');
|
testContext = testCanvas.getContext('webgl2') || testCanvas.getContext('experimental-webgl2');
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
return !!testContext;
|
return !!testContext;
|
||||||
|
|
Loading…
Add table
Reference in a new issue