Fixes typo in webgl.js
This commit is contained in:
parent
de9838018e
commit
2ec7e34541
@ -67,7 +67,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var currentGL, currentCanvas;
|
var currentGL, currentCanvas;
|
||||||
function generageGL() {
|
function generateGL() {
|
||||||
if (currentGL) {
|
if (currentGL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
|
|||||||
function initSmaskGL() {
|
function initSmaskGL() {
|
||||||
var canvas, gl;
|
var canvas, gl;
|
||||||
|
|
||||||
generageGL();
|
generateGL();
|
||||||
canvas = currentCanvas;
|
canvas = currentCanvas;
|
||||||
currentCanvas = null;
|
currentCanvas = null;
|
||||||
gl = currentGL;
|
gl = currentGL;
|
||||||
@ -257,7 +257,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
|
|||||||
function initFiguresGL() {
|
function initFiguresGL() {
|
||||||
var canvas, gl;
|
var canvas, gl;
|
||||||
|
|
||||||
generageGL();
|
generateGL();
|
||||||
canvas = currentCanvas;
|
canvas = currentCanvas;
|
||||||
currentCanvas = null;
|
currentCanvas = null;
|
||||||
gl = currentGL;
|
gl = currentGL;
|
||||||
@ -425,7 +425,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
|
|||||||
}
|
}
|
||||||
var enabled = false;
|
var enabled = false;
|
||||||
try {
|
try {
|
||||||
generageGL();
|
generateGL();
|
||||||
enabled = !!currentGL;
|
enabled = !!currentGL;
|
||||||
} catch (e) { }
|
} catch (e) { }
|
||||||
return shadow(this, 'isEnabled', enabled);
|
return shadow(this, 'isEnabled', enabled);
|
||||||
|
Loading…
Reference in New Issue
Block a user