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 <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-08-21 16:40:21 +02:00
parent 6ee8a1cb7c
commit 86e474688b
-1
View File
@@ -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