From e1b77fefaee32d3ba0922fa1500b605c695f90d3 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 27 Aug 2023 23:57:01 +0900 Subject: [PATCH] ebiten: update comments Updates #1870 --- image.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/image.go b/image.go index 3816a7190..a1c853d49 100644 --- a/image.go +++ b/image.go @@ -575,6 +575,9 @@ var _ [len(DrawTrianglesShaderOptions{}.Images) - graphics.ShaderImageCount]stru // // For the details about the shader, see https://ebitengine.org/en/documents/shader.html. // +// When one of the specified image is non-nil and its size is different from (width, height), DrawTrianglesShader panics. +// When one of the specified image is non-nil and is disposed, DrawTrianglesShader panics. +// // If len(vertices) is more than MaxVerticesCount, the exceeding part is ignored. // // If len(indices) is not multiple of 3, DrawTrianglesShader panics.