Skip to content
Snippets Groups Projects
Unverified Commit 33de60d3 authored by Alexander Rose's avatar Alexander Rose Committed by GitHub
Browse files

fix typeof check

parent ffdcf798
No related branches found
No related tags found
No related merge requests found
...@@ -169,7 +169,7 @@ export function getAttachment(gl: GLRenderingContext, extensions: WebGLExtension ...@@ -169,7 +169,7 @@ export function getAttachment(gl: GLRenderingContext, extensions: WebGLExtension
} }
function isImage(x: TextureImage<any> | TextureVolume<any> | HTMLImageElement): x is HTMLImageElement { function isImage(x: TextureImage<any> | TextureVolume<any> | HTMLImageElement): x is HTMLImageElement {
return typeof HTMLImageElement !== undefined && (x instanceof HTMLImageElement); return typeof HTMLImageElement !== 'undefined' && (x instanceof HTMLImageElement);
} }
function isTexture2d(x: TextureImage<any> | TextureVolume<any>, target: number, gl: GLRenderingContext): x is TextureImage<any> { function isTexture2d(x: TextureImage<any> | TextureVolume<any>, target: number, gl: GLRenderingContext): x is TextureImage<any> {
...@@ -441,4 +441,4 @@ export function createNullTexture(gl?: GLRenderingContext): Texture { ...@@ -441,4 +441,4 @@ export function createNullTexture(gl?: GLRenderingContext): Texture {
reset: () => {}, reset: () => {},
destroy: () => {}, destroy: () => {},
}; };
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment