]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/material/Pass.cxx
Work around apparent OSG 3.2.0 normal binding bug.
[simgear.git] / simgear / scene / material / Pass.cxx
index dc882d4cc530d79688306a85fec336a94b74f0d3..2a47ea39644f2561ac73e64c7e92e6d23dba961f 100644 (file)
@@ -1,27 +1,24 @@
 #include "Pass.hxx"
 
-#include <simgear/structure/OSGUtils.hxx>
-
-#include <osg/StateSet>
+#include <osgDB/Registry>
 
 namespace simgear
 {
 
 Pass::Pass(const Pass& rhs, const osg::CopyOp& copyop) :
-    _stateSet(clone_ref(rhs._stateSet, copyop))
+    osg::StateSet(rhs, copyop)
 {
 }
 
-void Pass::resizeGLObjectBuffers(unsigned int maxSize)
+namespace
 {
-    if (_stateSet.valid())
-        _stateSet->resizeGLObjectBuffers(maxSize);
+osgDB::RegisterDotOsgWrapperProxy PassProxy
+(
+    new Pass,
+    "simgear::Pass",
+    "Object simgear::Pass StateSet ",
+    0,
+    0
+    );
 }
-
-void Pass::releaseGLObjects(osg::State* state) const
-{
-    if (_stateSet.valid())
-        _stateSet->releaseGLObjects(state);
-}
-
 }