SDL_SetTextureBlendMode broken

Found that while playing with latest SDL hg:

— a/src/render/SDL_render.c Thu Feb 03 21:13:55 2011 -0800
+++ b/src/render/SDL_render.c Sat Feb 05 00:39:20 2011 +0100
@@ -459,7 +459,7 @@
renderer = texture->renderer;
texture->blendMode = blendMode;
if (texture->native) {

  •    return SDL_SetTextureBlendMode(texture, blendMode);
    
  •    return SDL_SetTextureBlendMode(texture->native, blendMode);
    
    } else if (renderer->SetTextureBlendMode) {
    return renderer->SetTextureBlendMode(renderer, texture);
    } else {

All in all, I have to say that I like the direction SDL 1.3 is heading
right now, that’s why I’ve finally started to truly use it instead of
relying on the compatibility layer. Might have more input/questions in
the future, but for now I still have a bit of work ahead of me
converting my code.

Regards,

Kai

Fixed, thanks!

I appreciate the comments. :)On Fri, Feb 4, 2011 at 3:40 PM, Kai Sterker <kai.sterker at gmail.com> wrote:

Found that while playing with latest SDL hg:

— a/src/render/SDL_render.c ? Thu Feb 03 21:13:55 2011 -0800
+++ b/src/render/SDL_render.c ? Sat Feb 05 00:39:20 2011 +0100
@@ -459,7 +459,7 @@
? ? renderer = texture->renderer;
? ? texture->blendMode = blendMode;
? ? if (texture->native) {

  • ? ? ? ?return SDL_SetTextureBlendMode(texture, blendMode);
  • ? ? ? ?return SDL_SetTextureBlendMode(texture->native, blendMode);
    ? ? } else if (renderer->SetTextureBlendMode) {
    ? ? ? ? return renderer->SetTextureBlendMode(renderer, texture);
    ? ? } else {

All in all, I have to say that I like the direction SDL 1.3 is heading
right now, that’s why I’ve finally started to truly use it instead of
relying on the compatibility layer. Might have more input/questions in
the future, but for now I still have a bit of work ahead of me
converting my code.

Regards,

Kai


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


? ? -Sam Lantinga, Founder and CEO, Galaxy Gameworks