commit 915f427bf59c5c7ad7d60ee5c8fd367aa24342e2
parent e88054de830a0140699e2e6d57d08b9735198f67
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 6 Dec 2016 10:01:02 +0100
Update the s3dut_mesh_get_data profile
Add the const qualifier to the submitted mesh.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/s3dut.h b/src/s3dut.h
@@ -58,7 +58,7 @@ s3dut_mesh_ref_put
S3DUT_API res_T
s3dut_mesh_get_data
- (struct s3dut_mesh* mesh,
+ (const struct s3dut_mesh* mesh,
struct s3dut_mesh_data* data);
/* Create a triangulated UV sphere discretized in `nslices' around the Z axis
diff --git a/src/s3dut_mesh.c b/src/s3dut_mesh.c
@@ -52,7 +52,7 @@ s3dut_mesh_ref_put(struct s3dut_mesh* mesh)
}
res_T
-s3dut_mesh_get_data(struct s3dut_mesh* mesh, struct s3dut_mesh_data* data)
+s3dut_mesh_get_data(const struct s3dut_mesh* mesh, struct s3dut_mesh_data* data)
{
size_t ncoords, nids;
if(!mesh || !data) return RES_BAD_ARG;