| Summary: | SDL_CreateTextureFromSurface forget to choose an alpha format for palettes with alpha values | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | render | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | don't know | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | test case | ||
|
Description
Sylvain
2018-12-15 13:41:16 UTC
Created attachment 3547 [details]
test case
https://hg.libsdl.org/SDL/rev/c66d1c7700bd Fixed bug 4999 - Palette surface always promoted to alpha (Thanks Cameron Gutman!) MSVC Static analysis: Incorrect alpha_value check in SDL_render.c re-open because there is another issue with this situation: - a palette surface without alpha value, but all alpha field with 0. - using the GLES 1 render, that only has ARGB texture. => the texture is always transparent, whereas it should be opaque. |