Browse Source

vertical flip texture when Loading occurs in native engine

Cedric Guillemet 5 years ago
parent
commit
8d2c7f08cf
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/Engines/nativeEngine.ts

+ 1 - 4
src/Engines/nativeEngine.ts

@@ -946,11 +946,8 @@ export class NativeEngine extends Engine {
                     return;
                     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));
                 //this._unpackFlipY(invertY === undefined ? true : (invertY ? true : false));
 
 
                 texture.baseWidth = this._native.getTextureWidth(webGLTexture);
                 texture.baseWidth = this._native.getTextureWidth(webGLTexture);