SDL_SetTextureBlendMode broken, caught by Kai Sterker - Thanks!

This commit is contained in:
Sam Lantinga 2011-02-05 00:32:04 -08:00
parent dfade9a630
commit 065cf0f75a

View file

@ -459,7 +459,7 @@ SDL_SetTextureBlendMode(SDL_Texture * texture, SDL_BlendMode blendMode)
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 {