diff --git a/internal/restorable/const_android.go b/internal/restorable/const_gles.go similarity index 90% rename from internal/restorable/const_android.go rename to internal/restorable/const_gles.go index f70db6466..ffd829d47 100644 --- a/internal/restorable/const_android.go +++ b/internal/restorable/const_gles.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build android || (ios && ebitengl) +// +build android ios,ebitengl + package restorable const needsDisposingWhenRestoring = true diff --git a/internal/restorable/const_others.go b/internal/restorable/const_others.go index f4f628f07..a3ba17e96 100644 --- a/internal/restorable/const_others.go +++ b/internal/restorable/const_others.go @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build !android && !js -// +build !android,!js +//go:build !android && !js && (!ios || !ebitengl) +// +build !android +// +build !js +// +build !ios !ebitengl package restorable