Преглед изворни кода

Merge pull request #16924 from Mugen87/dev35

TS: Fix .format type in CompressedTexture.
Michael Herzog пре 6 година
родитељ
комит
7cd094cd3d
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/textures/CompressedTexture.d.ts

+ 2 - 2
src/textures/CompressedTexture.d.ts

@@ -3,7 +3,7 @@ import {
 	Mapping,
 	Mapping,
 	Wrapping,
 	Wrapping,
 	TextureFilter,
 	TextureFilter,
-	PixelFormat,
+	CompressedPixelFormat,
 	TextureDataType,
 	TextureDataType,
 	TextureEncoding,
 	TextureEncoding,
 } from '../constants';
 } from '../constants';
@@ -14,7 +14,7 @@ export class CompressedTexture extends Texture {
 		mipmaps: ImageData[],
 		mipmaps: ImageData[],
 		width: number,
 		width: number,
 		height: number,
 		height: number,
-		format?: PixelFormat,
+		format?: CompressedPixelFormat,
 		type?: TextureDataType,
 		type?: TextureDataType,
 		mapping?: Mapping,
 		mapping?: Mapping,
 		wrapS?: Wrapping,
 		wrapS?: Wrapping,