| Summary: | SDL_SetTextureAlphaMod doesn't work on textures without a image-side alpha channel | ||
|---|---|---|---|
| Product: | SDL | Reporter: | c4577894 |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | adam |
| Version: | 2.0.1 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
|
Description
c4577894
2014-01-18 07:13:21 UTC
That's really unfortunate. It seems to me that one of the main points of SDL_SetTextureAlphaMod is to allow alpha blending surfaces that don't have their own alpha channel. I haven't been able to reproduce this behavior in the software renderer (using 16-bit textures w/o an alpha channel). You have to set the texture blend mode before it will work, in addition to setting the texture alpha mod: SDL_SetTextureBlendMode(hTexture, SDL_BLENDMODE_BLEND); Does that help? Adam, I think you're right, SDL_SetTextureBlendMode() was missing. |