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.:

https://hg.libsdl.org/SDL/rev/5c4a85c5b648 https://hg.libsdl.org/SDL/rev/5c4a85c5b648
https://hg.libsdl.org/SDL/rev/c2ba8ab27c1a https://hg.libsdl.org/SDL/rev/c2ba8ab27c1a
https://hg.libsdl.org/SDL/rev/fd7fe355f173 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