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 3286 - Remove SDL_GL_BindTexture and SDL_GL_UnbindTexture
Summary: Remove SDL_GL_BindTexture and SDL_GL_UnbindTexture
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: All All
: P2 API change
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 02:31 UTC by Alex Szpakowski
Modified: 2019-08-08 18:19 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 Alex Szpakowski 2016-03-10 02:31:49 UTC
The function SDL_GL_BindTexture...

* Only makes sense when the renderer has an OpenGL or OpenGL ES backend, which is only the case some of the time.
* Overwrites the current OpenGL context binding with the renderer's internal context.
* Binds an unspecified amount and type of OpenGL textures to unspecified texture units. In practice, it uses texture units 0 - 2 and either GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE, depending on some implementation-dependent factors.

These points, especially the last one, make it useless for practical purposes - you can't rely on it doing anything that you can use, and in order to use it you have to know details about the renderer's code which may change in any version. I think the functions should be removed.
Comment 1 Sam Lantinga 2017-08-12 04:22:58 UTC
For review in SDL 2.1.

Maybe we just need to define what it's doing more completely?