From 9d72d8c65a2e77fbf36610c4e793d9f6b60f8ee6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 8 Jan 2022 23:31:20 +0900 Subject: [PATCH] internal/buffered, interal/mipmap: typo --- internal/buffered/image.go | 6 +++--- internal/mipmap/mipmap.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/buffered/image.go b/internal/buffered/image.go index 47a8df5a1..f40f9a0f1 100644 --- a/internal/buffered/image.go +++ b/internal/buffered/image.go @@ -65,16 +65,16 @@ func (i *Image) initialize(width, height int) { i.height = height } -func (i *Image) SetIndependent(volatile bool) { +func (i *Image) SetIndependent(idependent bool) { if maybeCanAddDelayedCommand() { if tryAddDelayedCommand(func() error { - i.SetIndependent(volatile) + i.SetIndependent(idependent) return nil }) { return } } - i.img.SetIndependent(volatile) + i.img.SetIndependent(idependent) } func (i *Image) SetVolatile(volatile bool) { diff --git a/internal/mipmap/mipmap.go b/internal/mipmap/mipmap.go index 77ba0fcb0..897258937 100644 --- a/internal/mipmap/mipmap.go +++ b/internal/mipmap/mipmap.go @@ -59,8 +59,8 @@ func NewScreenFramebufferMipmap(width, height int) *Mipmap { } } -func (m *Mipmap) SetIndependent(volatile bool) { - m.orig.SetIndependent(volatile) +func (m *Mipmap) SetIndependent(idependent bool) { + m.orig.SetIndependent(idependent) } func (m *Mipmap) SetVolatile(volatile bool) {