From 195b63dc65d4be8419d15d6dae60a38d9da77ed3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 11 Apr 2005 15:22:29 +0000 Subject: [PATCH] From Olaf Flebbe, compile fix for Sun. --- include/osg/Program | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/osg/Program b/include/osg/Program index 33060d7af..67ee063bd 100644 --- a/include/osg/Program +++ b/include/osg/Program @@ -385,8 +385,13 @@ class SG_EXPORT Program : public osg::StateAttribute protected: - /** PerContextProgram (PCP) is an OSG-internal encapsulation of glPrograms per-GL context. */ + // make PerContextProgram a friend to allow it access Program's protected + // methods and member variables. + class PerContextProgram; + friend class PerContextProgram; + + /** PerContextProgram (PCP) is an OSG-internal encapsulation of glPrograms per-GL context. */ class PerContextProgram : public osg::Referenced { public: @@ -430,9 +435,6 @@ class SG_EXPORT Program : public osg::StateAttribute PerContextProgram& operator=(const PerContextProgram&); // disallowed }; - // make PerContextProgram a friend to allow it access Program's protected - // methods and member variables. - friend class PerContextProgram; protected: /*methods*/ virtual ~Program();