ebiten: Make AddressUnsafe default

Fixes #1228
This commit is contained in:
Hajime Hoshi 2020-10-04 23:48:20 +09:00
parent 8f00c8fbf5
commit 2dadc6a7a9
2 changed files with 6 additions and 6 deletions

View File

@ -242,14 +242,14 @@ type Vertex struct {
type Address int
const (
// AddressUnsafe means there is no guarantee when the texture coodinates are out of range.
AddressUnsafe Address = Address(driver.AddressUnsafe)
// AddressClampToZero means that out-of-range texture coordinates return 0 (transparent).
AddressClampToZero Address = Address(driver.AddressClampToZero)
// AddressRepeat means that texture coordinates wrap to the other side of the texture.
AddressRepeat Address = Address(driver.AddressRepeat)
// AddressUnsafe means there is no guarantee when the texture coodinates are out of range.
AddressUnsafe Address = Address(driver.AddressUnsafe)
)
// DrawTrianglesOptions represents options for DrawTriangles.
@ -270,7 +270,7 @@ type DrawTrianglesOptions struct {
Filter Filter
// Address is a sampler address mode.
// The default (zero) value is AddressClampToZero.
// The default (zero) value is AddressUnsafe.
Address Address
}

View File

@ -25,7 +25,7 @@ const (
type Address int
const (
AddressClampToZero Address = iota
AddressUnsafe Address = iota
AddressClampToZero
AddressRepeat
AddressUnsafe
)