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 - SDL_ISPIXELFORMAT_ALPHA returns 1 for SDL_PIXELFORMAT_BGR24
Summary: SDL_ISPIXELFORMAT_ALPHA returns 1 for SDL_PIXELFORMAT_BGR24
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.2
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-06 00:09 UTC by Lenard Lindstrom
Modified: 2015-05-31 05:45 UTC (History)
1 user (show)

See Also:


Attachments
Shows SDL_ISPIXELFORMAT_ALPHA value for two 24 bit pixel formats (1.51 KB, text/x-csrc)
2015-05-06 00:09 UTC, Lenard Lindstrom
Details

Note You need to log in before you can comment on or make changes to this bug.
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.