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 2337

Summary: Get the internal SDL_Texture type
Product: SDL Reporter: valentin.soudier
Component: videoAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: 2.0.1   
Hardware: x86   
OS: Mac OS X 10.6   

Description valentin.soudier 2014-01-06 10:44:17 UTC
Problem discussed here : https://forums.libsdl.org/viewtopic.php?t=9865&sid=0c905cfc712a811965568be86aa4b8a9
and here : https://forums.libsdl.org/viewtopic.php?t=9776&postdays=0&postorder=asc&start=0

Adding a parameter to the SDL_QueryTexture() function which return an enum corresponding to the internal texture type can be useful to be sure that a specific texture code will never be broken if you change/optimize the encapsulated stuff.

In my case it will be useful because I use shaders on a render texture to apply a post-processing filter.