diff --git a/internal/atlas/image.go b/internal/atlas/image.go index d972b2ac8..acf990b6c 100644 --- a/internal/atlas/image.go +++ b/internal/atlas/image.go @@ -712,6 +712,9 @@ func NewImage(width, height int) *Image { } func (i *Image) SetIsolated(isolated bool) { + if i.backend != nil { + panic("atlas: SetIsolated must be called before its backend is allocated") + } i.isolated = isolated }