add resize log

This commit is contained in:
jerrywwl
2019-04-01 20:46:37 +08:00
parent db5032ada8
commit da44c98e7b
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -363,6 +363,7 @@ export class WebGLGFXDevice extends GFXDevice {
}
public resize (width: number, height: number) {
console.log('Device resize: ' + width + 'x' + height);
this._canvas!.width = width;
this._canvas!.height = height;
this._width = width;
+1
View File
@@ -281,6 +281,7 @@ export class WebGL2GFXDevice extends GFXDevice {
}
public resize (width: number, height: number) {
console.log('Device resize: ' + width + 'x' + height);
this._canvas!.width = width;
this._canvas!.height = height;
this._width = width;