From 86e474688bf2db5f08435f805da0a607aa0563dd Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 21 Aug 2021 16:40:21 +0200 Subject: [PATCH] gpu: [compute] don't round atlas dimensions to power-of-twos There is no clear benefit and the rounding tends to waste texture memory. Signed-off-by: Elias Naur --- gpu/compute.go | 1 - 1 file changed, 1 deletion(-) diff --git a/gpu/compute.go b/gpu/compute.go index 0d8582db..1569206b 100644 --- a/gpu/compute.go +++ b/gpu/compute.go @@ -1298,7 +1298,6 @@ func (a *layerAtlas) ensureSize(useCPU bool, ctx driver.Device, size image.Point if a.size.X >= size.X && a.size.Y >= size.Y { return nil } - size.X, size.Y = pow2Ceil(size.X), pow2Ceil(size.Y) if a.fbo != nil { a.fbo.Release() a.fbo = nil