# HG changeset patch # User Sam Lantinga # Date 1296593667 28800 # Node ID a1345acf7b3d6c54b02a007da5c6077a966dfeff # Parent b5279313427642f032421283d7fe665dc75885a6 The renderers always support texture modulation and blend modes. diff -r b52793134276 -r a1345acf7b3d src/video/SDL_video.c --- a/src/video/SDL_video.c Tue Feb 01 12:44:52 2011 -0800 +++ b/src/video/SDL_video.c Tue Feb 01 12:54:27 2011 -0800 @@ -2062,10 +2062,6 @@ CHECK_TEXTURE_MAGIC(texture, -1); renderer = texture->renderer; - if (!renderer->SetTextureColorMod) { - SDL_Unsupported(); - return -1; - } if (r < 255 || g < 255 || b < 255) { texture->modMode |= SDL_TEXTUREMODULATE_COLOR; } else { @@ -2110,10 +2106,6 @@ CHECK_TEXTURE_MAGIC(texture, -1); renderer = texture->renderer; - if (!renderer->SetTextureAlphaMod) { - SDL_Unsupported(); - return -1; - } if (alpha < 255) { texture->modMode |= SDL_TEXTUREMODULATE_ALPHA; } else { @@ -2146,10 +2138,6 @@ CHECK_TEXTURE_MAGIC(texture, -1); renderer = texture->renderer; - if (!renderer->SetTextureBlendMode) { - SDL_Unsupported(); - return -1; - } texture->blendMode = blendMode; if (renderer->SetTextureBlendMode) { return renderer->SetTextureBlendMode(renderer, texture);