Skip to content

Commit 1f10e26

Browse files
quasilytehajimehoshi
authored andcommitted
ebiten: clarify the same images size rule for DrawTrianglesShaderOptions (#3187)
Since it's not allowed to have differently-sized images for DrawTrianglesShaderOptions in pixels mode, the comment should be updated.
1 parent 5bec31b commit 1f10e26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

image.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,8 @@ type DrawTrianglesShaderOptions struct {
633633
Uniforms map[string]any
634634

635635
// Images is a set of the source images.
636-
// All the images' sizes must be the same.
636+
// In the texel mode, all the image sizes must be the same.
637+
// The pixel mode allows images of different sizes.
637638
Images [4]*Image
638639

639640
// FillRule indicates the rule how an overlapped region is rendered.

0 commit comments

Comments
 (0)