Skip to content

Commit

Permalink
Fix naming and jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Trufi committed Apr 13, 2016
1 parent e944083 commit 24cd9da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Texture.js
Expand Up @@ -48,16 +48,16 @@ class Texture {
* При первом вызов происходит инициализация.
*
* @param {WebGLRenderingContext} gl
* @param {Number} uniform
* @param {Boolean} activate Нужно ли делать текстуру активной в контексте WebGL
*/
enable(gl, isActivate) {
enable(gl, activate) {
if (!this._texture) {
this._prepare(gl);
}

gl.bindTexture(gl.TEXTURE_2D, this._texture);

if (isActivate) {
if (activate) {
gl.activeTexture(gl.TEXTURE0);
}

Expand Down

0 comments on commit 24cd9da

Please sign in to comment.