From 0309bb1acbb54bd5ec849c93e243af371dd3cd16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 31 Oct 2018 17:03:51 -0700 Subject: [PATCH] Fixed issue #1539. --- src/renderer_gl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index b3a44519c..fa42985f1 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -4618,8 +4618,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) ); , _depth ) ); } - - if (computeWrite) + else if (computeWrite) { if (_target == GL_TEXTURE_3D) {