diff src/video/SDL_video.c @ 5147:a1345acf7b3d

The renderers always support texture modulation and blend modes.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 12:54:27 -0800
parents 31e7f523ab3d
children ad50b3db78bd
line wrap: on
line diff
--- 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);