From ff61a20315a75c21cffa5da33f8b9eb2e83072ac Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 25 Aug 2006 14:54:54 +0000 Subject: [PATCH] Added const version of getReadPBuffer() --- include/osg/Texture | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/osg/Texture b/include/osg/Texture index aa0b50f2f..6b641ca0d 100644 --- a/include/osg/Texture +++ b/include/osg/Texture @@ -442,6 +442,9 @@ class OSG_EXPORT Texture : public osg::StateAttribute /** Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture.*/ GraphicsContext* getReadPBuffer() { return _readPBuffer.get(); } + /** Get the const PBuffer graphis context to read from when using PBuffers for RenderToTexture.*/ + const GraphicsContext* getReadPBuffer() const { return _readPBuffer.get(); } + /** Texture is a pure virtual base class, apply must be overriden. */ virtual void apply(State& state) const = 0;