PSP: Fixed returning success for unsupported SDL_SetTextureColorMod().
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 01 Apr 2016 21:12:37 +0200
changeset 10136 c2ef15299a2e
parent 10135 74e0da251b27
child 10137 406f82002892
PSP: Fixed returning success for unsupported SDL_SetTextureColorMod(). Partially fixes Bugzilla #3298.
src/render/psp/SDL_render_psp.c
--- a/src/render/psp/SDL_render_psp.c	Fri Apr 01 21:11:31 2016 +0200
+++ b/src/render/psp/SDL_render_psp.c	Fri Apr 01 21:12:37 2016 +0200
@@ -50,6 +50,8 @@
 static void PSP_WindowEvent(SDL_Renderer * renderer,
                              const SDL_WindowEvent *event);
 static int PSP_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
+static int PSP_SetTextureColorMod(SDL_Renderer * renderer,
+                                   SDL_Texture * texture);
 static int PSP_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
                               const SDL_Rect * rect, const void *pixels,
                               int pitch);
@@ -359,6 +361,7 @@
 
     renderer->WindowEvent = PSP_WindowEvent;
     renderer->CreateTexture = PSP_CreateTexture;
+    renderer->SetTextureColorMod = PSP_SetTextureColorMod;
     renderer->UpdateTexture = PSP_UpdateTexture;
     renderer->LockTexture = PSP_LockTexture;
     renderer->UnlockTexture = PSP_UnlockTexture;
@@ -501,6 +504,11 @@
     return 0;
 }
 
+static int
+PSP_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture)
+{
+    return SDL_Unsupported();
+}
 
 void
 TextureActivate(SDL_Texture * texture)