Commit 4e246b5
Refuse formats the add-on does not implement
The copy loop writes B,G,R and fills the fourth byte only for A8R8G8B8, so
that is the only format actually produced. Every other value fell through to
that same loop and returned true with output that does not match the request.
ADDON_IMG_FMT_A8 was the worst of them: one byte per pixel is asked for and
three are written. The previous commit's bounds check now refuses that, but
it should not be reached at all.
Latent today only because CTexture::LoadIImage() asks for A8R8G8B8.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent adf5664 commit 4e246b5
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
163 | 172 | | |
164 | 173 | | |
165 | 174 | | |
| |||
0 commit comments