Commit ae1565b
committed
android: Fix no-op swizzle to actually convert from BGR(A) to RGB(A)
When a temporary buffer copy for swizzling and padding was implemented
in commit a16fb9a ("android: Implement format swizzle via buffer
copies"), the swizzle was implemented incorrectly and kept the b
component in the lowest byte matching `softbuffer`'s BGR order while
Android only has RGB formats. The inversion in the comment and
forgotten alpha channel didn't make things any clearer.1 parent a9bae73 commit ae1565b
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
0 commit comments