internal/restorable: change the naming convention: Num -> Count

This commit is contained in:
Hajime Hoshi 2022-07-13 02:11:12 +09:00
parent 921aeb4ea7
commit 7bf179472b

View File

@ -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
}