Quellcode durchsuchen

Fix error in engine.rawTextureGL2

Alex Gordon vor 5 Jahren
Ursprung
Commit
b3008ddcff
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      src/Engines/Extensions/engine.rawTextureGL2.ts

+ 5 - 1
src/Engines/Extensions/engine.rawTextureGL2.ts

@@ -94,7 +94,11 @@ function _createRawTextureFunction(is3D: boolean) {
         texture.type = textureType;
         texture.generateMipMaps = generateMipMaps;
         texture.samplingMode = samplingMode;
-        texture.is3D = true;
+        if (is3D) {
+            texture.is3D = true;
+        } else {
+            texture.is2DArray = true;
+        }
 
         if (!this._doNotHandleContextLost) {
             texture._bufferView = data;