X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobject.cpp;h=a23aa433b92a8a2611b938af84342c9fce082400;hb=e20075bffbbe1f3aaa9cc149953525a7e855f496;hp=2026e3d58f3d0b658ed4b3bdba7fe9d211d6ffd1;hpb=5658c6ea1a5caf1b408366cebf785f79d650ff53;p=libs%2Fgl.git diff --git a/source/object.cpp b/source/object.cpp index 2026e3d5..a23aa433 100644 --- a/source/object.cpp +++ b/source/object.cpp @@ -111,7 +111,7 @@ void Object::finish_render(const ObjectPass *pass) const void Object::render_instance(const ObjectInstance &inst, const Tag &tag) const { inst.setup_render(tag); - unsigned lod=min(inst.get_level_of_detail(), meshes.size()-1); + unsigned lod=min(inst.get_level_of_detail(), meshes.size()-1); meshes[lod]->draw(); inst.finish_render(tag); } @@ -169,7 +169,7 @@ void Object::Loader::shader_texture(const string &n) if(!obj.technique) throw InvalidState("Can't specify shader textures without a Technique"); - unsigned eqsign=n.find('='); + string::size_type eqsign=n.find('='); if(eqsign==string::npos) throw InvalidParameterValue("Must specify texture slot name");