diff --git a/src/OpenGl/OpenGl_TextureBufferArb.hxx b/src/OpenGl/OpenGl_TextureBufferArb.hxx index 851640ed8c..834d6ca0a8 100644 --- a/src/OpenGl/OpenGl_TextureBufferArb.hxx +++ b/src/OpenGl/OpenGl_TextureBufferArb.hxx @@ -98,6 +98,12 @@ public: Standard_EXPORT void UnbindTexture (const Handle(OpenGl_Context)& theGlCtx, const GLenum theTextureUnit = GL_TEXTURE0) const; + //! Returns name of TBO. + GLuint TextureId() const + { + return myTextureId; + } + protected: GLuint myTextureId; //!< texture id