comparison src/render/SDL_render.c @ 5183:4d098d286794

SDL_SetTextureBlendMode broken, caught by Kai Sterker - Thanks!
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Feb 2011 00:32:04 -0800
parents 4d39eeaad00b
children ef5a61ea3202
comparison
equal deleted inserted replaced
5182:f652a24a2e99 5183:4d098d286794
457 CHECK_TEXTURE_MAGIC(texture, -1); 457 CHECK_TEXTURE_MAGIC(texture, -1);
458 458
459 renderer = texture->renderer; 459 renderer = texture->renderer;
460 texture->blendMode = blendMode; 460 texture->blendMode = blendMode;
461 if (texture->native) { 461 if (texture->native) {
462 return SDL_SetTextureBlendMode(texture, blendMode); 462 return SDL_SetTextureBlendMode(texture->native, blendMode);
463 } else if (renderer->SetTextureBlendMode) { 463 } else if (renderer->SetTextureBlendMode) {
464 return renderer->SetTextureBlendMode(renderer, texture); 464 return renderer->SetTextureBlendMode(renderer, texture);
465 } else { 465 } else {
466 return 0; 466 return 0;
467 } 467 }