From 4bcd07385ea6ae92278081f994d65b19778687a9 Mon Sep 17 00:00:00 2001 From: iko Date: Wed, 20 Mar 2019 12:30:48 +0300 Subject: [PATCH] 0030505: Volume Rendering - Deferred lighting Missing getter for OpenGl_Texture::mySizedFormat has been added. --- src/OpenGl/OpenGl_GlFunctions.hxx | 1 + src/OpenGl/OpenGl_Texture.hxx | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/OpenGl/OpenGl_GlFunctions.hxx b/src/OpenGl/OpenGl_GlFunctions.hxx index 3f00bb1a4a..d1bb22cf30 100644 --- a/src/OpenGl/OpenGl_GlFunctions.hxx +++ b/src/OpenGl/OpenGl_GlFunctions.hxx @@ -132,6 +132,7 @@ #define GL_RG16UI 0x823A #define GL_RG32I 0x823B #define GL_RG32UI 0x823C + #define GL_RG8_SNORM 0x8F95 #define GL_RGBA32UI 0x8D70 #define GL_RGB32UI 0x8D71 #define GL_RGBA16UI 0x8D76 diff --git a/src/OpenGl/OpenGl_Texture.hxx b/src/OpenGl/OpenGl_Texture.hxx index c077d15edd..7943dad4af 100644 --- a/src/OpenGl/OpenGl_Texture.hxx +++ b/src/OpenGl/OpenGl_Texture.hxx @@ -338,6 +338,12 @@ public: { return myTextFormat; } + + //! @return texture format (sized) + GLint SizedFormat() const + { + return mySizedFormat; + } //! Return true for GL_RED and GL_ALPHA formats. bool IsAlpha() const