Преглед изворни кода

Fix error in engine.rawTextureGL2

Alex Gordon пре 5 година
родитељ
комит
b3008ddcff
1 измењених фајлова са 5 додато и 1 уклоњено
  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;