Browse Source

Merge pull request #5492 from jsundn/master

Fixes typo in webgl.js
Jonas Jenwald 11 years ago
parent
commit
6e7651a548
  1. 8
      src/display/webgl.js

8
src/display/webgl.js

@ -67,7 +67,7 @@ var WebGLUtils = (function WebGLUtilsClosure() { @@ -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() { @@ -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() { @@ -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() { @@ -425,7 +425,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
}
var enabled = false;
try {
generageGL();
generateGL();
enabled = !!currentGL;
} catch (e) { }
return shadow(this, 'isEnabled', enabled);

Loading…
Cancel
Save