From ccbb9ac6bc785244a04e44468604005d82aa810b Mon Sep 17 00:00:00 2001 From: Benjamin Grange Date: Sat, 16 Mar 2019 20:43:37 +0100 Subject: [PATCH] Fix GL texture array Bad num layers --- src/renderer_gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index f0c9fdbd4..44bf0d8de 100644 --- a/src/renderer_gl.cpp +++ b/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 ) )