Procházet zdrojové kódy

Merge pull request #1697 from bencoyote/fix_texture_array

Fix GL texture array
Бранимир Караџић před 6 roky
rodič
revize
5013ba134f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/renderer_gl.cpp

+ 1 - 1
src/renderer_gl.cpp

@@ -4792,7 +4792,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
 			if (!init(target
 				, ti.width
 				, ti.height
-				, ti.depth
+				, textureArray ? ti.numLayers : ti.depth
 				, ti.numMips
 				, _flags
 				) )