Commit b799076
Revert "Cache the SDL_PixelFormatDetails in SDL2_PixelFormat::next"
This reverts commit 7f7b1e6.
Specifically, it reverts the handling of the pixel format passed to
SDL3_ConvertSurfaceAndColorspace inside of SDL_ConvertSurface so that
the pixel format is derived by calling SDL3_GetPixelFormatForMasks
instead of using the value from format->format.
Note, the other hunks from 7f7b1e6 were reverted in e47c7c7.
Resolves: #542
Signed-off-by: Yodel Eldar <[email protected]>1 parent da86b66 commit b799076
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4232 | 4232 | | |
4233 | 4233 | | |
4234 | 4234 | | |
| 4235 | + | |
4235 | 4236 | | |
4236 | 4237 | | |
4237 | 4238 | | |
| |||
4245 | 4246 | | |
4246 | 4247 | | |
4247 | 4248 | | |
| 4249 | + | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
| 4253 | + | |
| 4254 | + | |
4248 | 4255 | | |
4249 | 4256 | | |
4250 | 4257 | | |
| |||
4257 | 4264 | | |
4258 | 4265 | | |
4259 | 4266 | | |
4260 | | - | |
| 4267 | + | |
4261 | 4268 | | |
4262 | 4269 | | |
4263 | 4270 | | |
| |||
0 commit comments