Code cleanup: fix compiler warning.
This commit is contained in:
parent
1f5c5fa189
commit
8a76f8dac3
|
@ -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],
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue