소스 검색

vertical flip texture when Loading occurs in native engine

Cedric Guillemet 5 년 전
부모
커밋
8d2c7f08cf
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      src/Engines/nativeEngine.ts

+ 1 - 4
src/Engines/nativeEngine.ts

@@ -946,11 +946,8 @@ export class NativeEngine extends Engine {
                     return;
                 }
 
-                this._native.loadTexture(webGLTexture, data, !noMipmap);
+                this._native.loadTexture(webGLTexture, data, !noMipmap, invertY);
 
-                if (invertY) {
-                    throw new Error("Support for textures with inverted Y coordinates not yet implemented.");
-                }
                 //this._unpackFlipY(invertY === undefined ? true : (invertY ? true : false));
 
                 texture.baseWidth = this._native.getTextureWidth(webGLTexture);