瀏覽代碼

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);