Commit 6088af8
committed
Add [Clamp] to maxAnisotropy
The default behavior (`value % 65536`) doesn't make any sense here.
We could use [EnforceRange], but [Clamp] makes sense:
- Any value of maxAnisotropy > 65535 behaves identically to 65535
(that is, it's as if there's no maximum).
- Any value of maxAnisotropy < 0 behaves identically to 0
(it's a validation error).
Fixes #1269.1 parent b5c36e3 commit 6088af8
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2286 | 2286 | | |
2287 | 2287 | | |
2288 | 2288 | | |
2289 | | - | |
| 2289 | + | |
2290 | 2290 | | |
2291 | 2291 | | |
2292 | 2292 | | |
| |||
2303 | 2303 | | |
2304 | 2304 | | |
2305 | 2305 | | |
| 2306 | + | |
2306 | 2307 | | |
2307 | 2308 | | |
2308 | 2309 | | |
| |||
0 commit comments