OpenGL texture ID

Is there a legitimate way of finding the OpenGL texture ID corresponding to a particular SDL2 texture? At the moment I’m getting it from the driverdata structure member but that’s not publicly exposed, and it’s moved in SDL 2.0.9 because of the introduction of the scaleMode member. I need the OpenGL ID because I’m rendering SDL’s 2D texture in a 3D scene, which works beautifully well, even if it’s not something officially supported.

I am looking for the same.
Also here: