forked from joejulian/gio
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user