SDL_SetTextureBlendMode broken, caught by Kai Sterker - Thanks!

This commit is contained in:
Sam Lantinga
2011-02-05 00:32:04 -08:00
parent 4e34cbe61d
commit 509c2203d4

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 {