* Fix broken compile of test app.
* Fix some warnings compiling with gcc for 32 bit.
* More tweaks to avoid extended precision issue from #29301.
This commit is contained in:
Brecht Van Lommel
2011-12-02 14:26:28 +00:00
parent 1f96a120f6
commit efe4ea284a
8 changed files with 33 additions and 54 deletions

View File

@@ -685,9 +685,9 @@ void MeshManager::device_update(Device *device, DeviceScene *dscene, Scene *scen
if(!mesh->transform_applied) {
string msg = "Updating Mesh BVH ";
if(mesh->name == "")
msg += string_printf("%ld/%ld", i+1, num_instance_bvh);
msg += string_printf("%lu/%lu", (unsigned long)(i+1), (unsigned long)num_instance_bvh);
else
msg += string_printf("%s %ld/%ld", mesh->name.c_str(), i+1, num_instance_bvh);
msg += string_printf("%s %lu/%lu", mesh->name.c_str(), (unsigned long)(i+1), (unsigned long)num_instance_bvh);
progress.set_status(msg, "Building BVH");
mesh->compute_bvh(&scene->params, progress);