We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2977

Summary: SDL_ISPIXELFORMAT_ALPHA returns 1 for SDL_PIXELFORMAT_BGR24
Product: SDL Reporter: Lenard Lindstrom <len-l>
Component: videoAssignee: 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

Description Lenard Lindstrom 2015-05-06 00:09:24 UTC
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.
Comment 1 Ryan C. Gordon 2015-05-31 05:45:54 UTC
This is fixed now in https://hg.libsdl.org/SDL/rev/ad9917a91c06, thanks!

--ryan.