0029529: Volume Rendering - crash on re-displaying the object
authorkgv <kgv@opencascade.com>
Thu, 1 Mar 2018 17:10:46 +0000 (20:10 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 2 Mar 2018 12:27:57 +0000 (15:27 +0300)
Added missing getters: OpenGl_TextureBufferArb::TextureFormat() and OpenGl_ShaderManager::OitState().

src/OpenGl/OpenGl_ShaderManager.hxx
src/OpenGl/OpenGl_TextureBufferArb.hxx

index 1727030..7c423e0 100644 (file)
@@ -289,6 +289,9 @@ public:
 
 public:
 
 
 public:
 
+  //! Returns state of OIT uniforms.
+  const OpenGl_OitState& OitState() const { return myOitState; }
+
   //! Set the state of OIT rendering pass.
   //! @param theToEnableOitWrite [in] flag indicating whether the special output should be written for OIT algorithm.
   //! @param theDepthFactor [in] the scalar factor of depth influence to the fragment's coverage.
   //! Set the state of OIT rendering pass.
   //! @param theToEnableOitWrite [in] flag indicating whether the special output should be written for OIT algorithm.
   //! @param theDepthFactor [in] the scalar factor of depth influence to the fragment's coverage.
index 9ffcb5d..fe8bf81 100644 (file)
@@ -30,7 +30,7 @@
 //! are declared in this class.
 class OpenGl_TextureBufferArb : public OpenGl_VertexBuffer
 {
 //! are declared in this class.
 class OpenGl_TextureBufferArb : public OpenGl_VertexBuffer
 {
-
+  DEFINE_STANDARD_RTTIEXT(OpenGl_TextureBufferArb, OpenGl_VertexBuffer)
 public:
 
   //! Helpful constants
 public:
 
   //! Helpful constants
@@ -99,20 +99,16 @@ public:
                                       const Graphic3d_TextureUnit   theTextureUnit) const;
 
   //! Returns name of TBO.
                                       const Graphic3d_TextureUnit   theTextureUnit) const;
 
   //! Returns name of TBO.
-  GLuint TextureId() const
-  {
-    return myTextureId;
-  }
+  GLuint TextureId() const { return myTextureId; }
+
+  //! Returns internal texture format.
+  GLenum TextureFormat() const { return myTexFormat; }
 
 protected:
 
   GLuint myTextureId; //!< texture id
   GLenum myTexFormat; //!< internal texture format
 
 
 protected:
 
   GLuint myTextureId; //!< texture id
   GLenum myTexFormat; //!< internal texture format
 
-public:
-
-  DEFINE_STANDARD_RTTIEXT(OpenGl_TextureBufferArb,OpenGl_VertexBuffer) // Type definition
-
 };
 
 DEFINE_STANDARD_HANDLE(OpenGl_TextureBufferArb, OpenGl_VertexBuffer)
 };
 
 DEFINE_STANDARD_HANDLE(OpenGl_TextureBufferArb, OpenGl_VertexBuffer)