chore: Remove spurios device.getSize() (#2120)

This commit is contained in:
Ib Green 2024-06-26 10:16:53 -04:00 committed by GitHub
parent fe059123e5
commit cc973d8032
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 8 deletions

View File

@ -76,10 +76,6 @@ export class NullDevice extends Device {
return false;
}
getSize(): [number, number] {
return [this.canvasContext.width, this.canvasContext.height];
}
isTextureFormatSupported(format: TextureFormat): boolean {
return true;
}

View File

@ -184,10 +184,6 @@ export class WebGLDevice extends Device {
return this.gl.isContextLost();
}
getSize(): [number, number] {
return [this.gl.drawingBufferWidth, this.gl.drawingBufferHeight];
}
isTextureFormatSupported(format: TextureFormat): boolean {
return isTextureFormatSupported(this.gl, format, this._extensions);
}