Skip to content

Commit e4067e9

Browse files
committed
t
1 parent dba9ce8 commit e4067e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/cgl/cgl_texture.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export class Texture extends CgTexture
3232
if (!__cgl) throw new Error("no cgl");
3333

3434
this._cgl = __cgl;
35+
this._log = new Logger("tex");
3536
this.tex = this._cgl.gl.createTexture();
3637
this.loading = false;
3738
this.flip = true;
@@ -297,7 +298,7 @@ export class Texture extends CgTexture
297298
this.width = t.width;
298299
this.height = t.height;
299300
this.tex = t.tex;
300-
this._log.warn("[cgl_texture] texture size too big!", img.width, img.height, this._cgl.maxTexSize);
301+
this.log.warn("[cgl_texture] texture size too big!", img.width, img.height, this._cgl.maxTexSize);
301302
return;
302303
}
303304

0 commit comments

Comments
 (0)