Pārlūkot izejas kodu

vertical flip texture when Loading occurs in native engine

Cedric Guillemet 5 gadi atpakaļ
vecāks
revīzija
8d2c7f08cf
1 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  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);