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 ) )