changeset 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 b52793134276
children 2f44e6969a59
files src/video/SDL_video.c
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
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);