| Summary: | SDL_ISPIXELFORMAT_ALPHA returns 1 for SDL_PIXELFORMAT_BGR24 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Lenard Lindstrom <len-l> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | 2.0.2 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: | Shows SDL_ISPIXELFORMAT_ALPHA value for two 24 bit pixel formats | ||
This is fixed now in https://hg.libsdl.org/SDL/rev/ad9917a91c06, thanks! --ryan. |
Created attachment 2150 [details] Shows SDL_ISPIXELFORMAT_ALPHA value for two 24 bit pixel formats The SDL_PixelFormatEnum value SDL_PIXELFORMAT_BGR24 is expected to not have per-pixel alpha. Yet the SDL_ISPIXELFORMAT_ALPHA test is true, while it is false for SDL_PIXELFORMAT_RGB24. Attached is a program which shows the inconsistency, along with the situation where the anomaly was discovered.