From 7bf179472b9d0d261309aa59e18d4ec5d666e744 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 13 Jul 2022 02:11:12 +0900 Subject: [PATCH] internal/restorable: change the naming convention: Num -> Count --- internal/restorable/image.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/restorable/image.go b/internal/restorable/image.go index 79db10bee..851598de4 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -403,8 +403,8 @@ func (i *Image) appendDrawTrianglesHistory(srcs [graphics.ShaderImageCount]*Imag } // TODO: Would it be possible to merge draw image history items? - const maxDrawTrianglesHistoryNum = 1024 - if len(i.drawTrianglesHistory)+1 > maxDrawTrianglesHistoryNum { + const maxDrawTrianglesHistoryCount = 1024 + if len(i.drawTrianglesHistory)+1 > maxDrawTrianglesHistoryCount { i.makeStale() return }