We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2317

Summary: Android: SetTextureColorMod doesn't work for RGB surfaces/textures
Product: SDL Reporter: Josef Vanzura <gindar>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gindar
Version: HG 2.0   
Hardware: ARM   
OS: Android (All)   

Description Josef Vanzura 2013-12-18 23:07:20 UTC
SetTextureColorMod doesn't work for textures created from RGB surfaces (without alpha channel).

SDL_Surface* surf = IMG_Load(path);
SDL_Texture* tex = SDL_CreateTextureFromSurface(renderer, surf);
SDL_SetTextureColorMod(tex, 255, 0, 0);
SDL_RenderCopy(renderer, tex, rect);

RGBA textures are rendered red but RGB textures without change.

Device: Lenovo A1000 (Android API16)
Comment 1 Sam Lantinga 2016-10-01 18:05:55 UTC
This should be fixed:
https://hg.libsdl.org/SDL/rev/48b40c223503

*** This bug has been marked as a duplicate of bug 3361 ***