From 2dcababb65029ce58f9a241bd15f61800b589de8 Mon Sep 17 00:00:00 2001 From: gazer Date: Mon, 5 Jun 2017 21:24:13 +0300 Subject: [PATCH] draw non-scaled textures with linear filtration to significantly decrease batches count --- src/dlangui/graphics/gldrawbuf.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangui/graphics/gldrawbuf.d b/src/dlangui/graphics/gldrawbuf.d index 5f38e70c..f7b1c067 100644 --- a/src/dlangui/graphics/gldrawbuf.d +++ b/src/dlangui/graphics/gldrawbuf.d @@ -572,7 +572,7 @@ private class GLImageCache : GLCache dstrc.bottom -= clip.bottom; } if (!dstrc.empty) - glSupport.queue.addTexturedRect(_texture, _tdx, _tdy, color, color, color, color, srcrc, dstrc, srcrc.width() != dstrc.width() || srcrc.height() != dstrc.height()); + glSupport.queue.addTexturedRect(_texture, _tdx, _tdy, color, color, color, color, srcrc, dstrc, true); } } }