The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
alpha blending in software renderer doesn't work.
Raymond Jennings
Guest

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?
alpha blending in software renderer doesn't work.
Alex Szpakowski
Guest

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
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/c2ba8ab27c1a
https://hg.libsdl.org/SDL/rev/fd7fe355f173
Quote:
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://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org