PSP: Fixed returning success for unsupported SDL_SetTextureColorMod().
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 01 Apr 2016 21:12:37 +0200
changeset 10136c2ef15299a2e
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
     1.1 --- a/src/render/psp/SDL_render_psp.c	Fri Apr 01 21:11:31 2016 +0200
     1.2 +++ b/src/render/psp/SDL_render_psp.c	Fri Apr 01 21:12:37 2016 +0200
     1.3 @@ -50,6 +50,8 @@
     1.4  static void PSP_WindowEvent(SDL_Renderer * renderer,
     1.5                               const SDL_WindowEvent *event);
     1.6  static int PSP_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
     1.7 +static int PSP_SetTextureColorMod(SDL_Renderer * renderer,
     1.8 +                                   SDL_Texture * texture);
     1.9  static int PSP_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
    1.10                                const SDL_Rect * rect, const void *pixels,
    1.11                                int pitch);
    1.12 @@ -359,6 +361,7 @@
    1.13  
    1.14      renderer->WindowEvent = PSP_WindowEvent;
    1.15      renderer->CreateTexture = PSP_CreateTexture;
    1.16 +    renderer->SetTextureColorMod = PSP_SetTextureColorMod;
    1.17      renderer->UpdateTexture = PSP_UpdateTexture;
    1.18      renderer->LockTexture = PSP_LockTexture;
    1.19      renderer->UnlockTexture = PSP_UnlockTexture;
    1.20 @@ -501,6 +504,11 @@
    1.21      return 0;
    1.22  }
    1.23  
    1.24 +static int
    1.25 +PSP_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture)
    1.26 +{
    1.27 +    return SDL_Unsupported();
    1.28 +}
    1.29  
    1.30  void
    1.31  TextureActivate(SDL_Texture * texture)