Alpha blending in software renderer doesn't work

Back when I used SDL_BlitScaled, it could handle alpha blending just fine.

So does SDL_RenderCopyEx when I’m using a hardware renderer.

However, SDL_RenderCopyEx on a software renderer only works if the source
texture doesn’t have an alpha channel. Otherwise NOTHING gets drawn at all.

SDL version: 2.0.3

BTW…where’s the best place to report bugs? On the mailing list or on
bugzilla?

The Bugzilla is generally the best place to report bugs, but the mailing list is also good for getting help resolving issues and such.

Can you try with the latest SDL 2.0.4 release candidate? https://www.libsdl.org/tmp/download-2.0.php https://www.libsdl.org/tmp/download-2.0.php
Various bugs related to alpha in the software renderer have been fixed in 2.0.4, e.g.:

Fixed bug 1550 - SDL_RenderCopy/CopyEx in software should optionally … · libsdl-org/SDL@b7ede6c · GitHub https://hg.libsdl.org/SDL/rev/5c4a85c5b648
Fixed bug 2538 - SDL_SetTextureAlphaMod does not work with SDL_FlipMo… · libsdl-org/SDL@d763a9f · GitHub https://hg.libsdl.org/SDL/rev/c2ba8ab27c1a
Fixed bug 3023 - setting a white and then non-white texture color mod… · libsdl-org/SDL@e589cdb · GitHub https://hg.libsdl.org/SDL/rev/fd7fe355f173> On Aug 27, 2015, at 1:14 AM, Raymond Jennings wrote:

Back when I used SDL_BlitScaled, it could handle alpha blending just fine.

So does SDL_RenderCopyEx when I’m using a hardware renderer.

However, SDL_RenderCopyEx on a software renderer only works if the source texture doesn’t have an alpha channel. Otherwise NOTHING gets drawn at all.

SDL version: 2.0.3

BTW…where’s the best place to report bugs? On the mailing list or on bugzilla?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org