Code cleanup: fix compiler warning.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Sat, 10 Mar 2018 05:51:52 +0000 (06:51 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Sat, 10 Mar 2018 05:51:52 +0000 (06:51 +0100)
intern/cycles/render/mesh.cpp
intern/cycles/render/mesh.h

index 7d5a0e4..7cfbb7b 100644 (file)
@@ -899,7 +899,7 @@ void Mesh::pack_shaders(Scene *scene, uint *tri_shader)
        }
 }
 
-void Mesh::pack_normals(Scene *scene, float4 *vnormal)
+void Mesh::pack_normals(float4 *vnormal)
 {
        Attribute *attr_vN = attributes.find(ATTR_STD_VERTEX_NORMAL);
        if(attr_vN == NULL) {
@@ -1777,8 +1777,7 @@ void MeshManager::device_update_mesh(Device *,
                foreach(Mesh *mesh, scene->meshes) {
                        mesh->pack_shaders(scene,
                                           &tri_shader[mesh->tri_offset]);
-                       mesh->pack_normals(scene,
-                                          &vnormal[mesh->vert_offset]);
+                       mesh->pack_normals(&vnormal[mesh->vert_offset]);
                        mesh->pack_verts(tri_prim_index,
                                         &tri_vindex[mesh->tri_offset],
                                         &tri_patch[mesh->tri_offset],
index 03a419e..e370f8a 100644 (file)
@@ -280,7 +280,7 @@ public:
        void add_undisplaced();
 
        void pack_shaders(Scene *scene, uint *shader);
-       void pack_normals(Scene *scene, float4 *vnormal);
+       void pack_normals(float4 *vnormal);
        void pack_verts(const vector<uint>& tri_prim_index,
                        uint4 *tri_vindex,
                        uint *tri_patch,