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 - Android: SetTextureColorMod doesn't work for RGB surfaces/textures
Summary: Android: SetTextureColorMod doesn't work for RGB surfaces/textures
Status: RESOLVED DUPLICATE of bug 3361
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: HG 2.0
Hardware: ARM Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-18 23:07 UTC by Josef Vanzura
Modified: 2016-10-01 18:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***