Skip to content

Commit

Permalink
PSP: Fixed returning success for unsupported SDL_SetTextureColorMod().
Browse files Browse the repository at this point in the history
Partially fixes Bugzilla #3298.
  • Loading branch information
philippwiesemann committed Apr 1, 2016
1 parent 12c78c5 commit d1e4814
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/render/psp/SDL_render_psp.c
Expand Up @@ -50,6 +50,8 @@ static SDL_Renderer *PSP_CreateRenderer(SDL_Window * window, Uint32 flags);
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);
Expand Down Expand Up @@ -359,6 +361,7 @@ PSP_CreateRenderer(SDL_Window * window, Uint32 flags)

renderer->WindowEvent = PSP_WindowEvent;
renderer->CreateTexture = PSP_CreateTexture;
renderer->SetTextureColorMod = PSP_SetTextureColorMod;
renderer->UpdateTexture = PSP_UpdateTexture;
renderer->LockTexture = PSP_LockTexture;
renderer->UnlockTexture = PSP_UnlockTexture;
Expand Down Expand Up @@ -501,6 +504,11 @@ PSP_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
return 0;
}

static int
PSP_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture)
{
return SDL_Unsupported();
}

void
TextureActivate(SDL_Texture * texture)
Expand Down

0 comments on commit d1e4814

Please sign in to comment.