From fe3dbc63fc97c42ceb76b566fdb84fca3b1c5750 Mon Sep 17 00:00:00 2001 From: osa <osa@opencascade.com> Date: Fri, 21 Aug 2020 11:22:45 +0300 Subject: [PATCH] 0031715: Visualization - add access to proxy shader program --- src/OpenGl/OpenGl_ShaderProgram.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/OpenGl/OpenGl_ShaderProgram.hxx b/src/OpenGl/OpenGl_ShaderProgram.hxx index c86f0ec3c5..7ed83ff91d 100755 --- a/src/OpenGl/OpenGl_ShaderProgram.hxx +++ b/src/OpenGl/OpenGl_ShaderProgram.hxx @@ -259,6 +259,9 @@ public: //! Fetches uniform variables from proxy shader program. Standard_EXPORT Standard_Boolean ApplyVariables (const Handle(OpenGl_Context)& theCtx); + + //! @return proxy shader program. + const Handle(Graphic3d_ShaderProgram)& Proxy() const { return myProxy; } //! @return true if current object was initialized inline bool IsValid() const