Fixes typo in webgl.js

This commit is contained in:
jsundn 2014-11-18 14:31:19 +01:00
parent de9838018e
commit 2ec7e34541

View File

@ -67,7 +67,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
}
var currentGL, currentCanvas;
function generageGL() {
function generateGL() {
if (currentGL) {
return;
}
@ -125,7 +125,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
function initSmaskGL() {
var canvas, gl;
generageGL();
generateGL();
canvas = currentCanvas;
currentCanvas = null;
gl = currentGL;
@ -257,7 +257,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
function initFiguresGL() {
var canvas, gl;
generageGL();
generateGL();
canvas = currentCanvas;
currentCanvas = null;
gl = currentGL;
@ -425,7 +425,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
}
var enabled = false;
try {
generageGL();
generateGL();
enabled = !!currentGL;
} catch (e) { }
return shadow(this, 'isEnabled', enabled);