]> git.tdb.fi Git - libs/gl.git/blobdiff - source/object.cpp
Support collectionless loading of Technique and RenderPass
[libs/gl.git] / source / object.cpp
index 0a03b7a81a151da82ac76c41e04159e23fc4a963..2423fcdab3fa353c47639484953e07cef1a68a5f 100644 (file)
@@ -125,9 +125,12 @@ void Object::Loader::mesh(const std::string &n)
 
 void Object::Loader::technique()
 {
-       RefPtr<Technique> tch=new Technique;
-       load_sub(*tch, get_collection());
-       obj.technique=tch.release();
+       RefPtr<Technique> tech=new Technique;
+       if(coll)
+               load_sub(*tech, get_collection());
+       else
+               load_sub(*tech);
+       obj.technique=tech.release();
        obj.own_technique=true;
 }