mirror of
https://github.com/visgl/luma.gl.git
synced 2026-02-01 14:33:49 +00:00
chore: Remove spurios device.getSize() (#2120)
This commit is contained in:
parent
fe059123e5
commit
cc973d8032
@ -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;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user