summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_mesh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_canvas3d_mesh.c b/src/lib/evas/canvas/evas_canvas3d_mesh.c
index 98647a5..b24c7ec 100644
--- a/src/lib/evas/canvas/evas_canvas3d_mesh.c
+++ b/src/lib/evas/canvas/evas_canvas3d_mesh.c
@@ -934,7 +934,7 @@ evas_canvas3d_mesh_interpolate_position_get(Eina_Vector3 *out, const Evas_Canvas
934 { 934 {
935 float *ptr; 935 float *ptr;
936 936
937 if (!EINA_FLT_CMP(pos0->stride, 0.0)) 937 if (pos0->stride != 0)
938 ptr = (float *)((char *)pos0->data + pos0->stride * index); 938 ptr = (float *)((char *)pos0->data + pos0->stride * index);
939 else 939 else
940 ptr = (float *)pos0->data + 3 * index; 940 ptr = (float *)pos0->data + 3 * index;
@@ -947,12 +947,12 @@ evas_canvas3d_mesh_interpolate_position_get(Eina_Vector3 *out, const Evas_Canvas
947 { 947 {
948 float *ptr0, *ptr1; 948 float *ptr0, *ptr1;
949 949
950 if (!EINA_FLT_CMP(pos0->stride, 0.0)) 950 if (pos0->stride != 0)
951 ptr0 = (float *)((char *)pos0->data + pos0->stride * index); 951 ptr0 = (float *)((char *)pos0->data + pos0->stride * index);
952 else 952 else
953 ptr0 = (float *)pos0->data + 3 * index; 953 ptr0 = (float *)pos0->data + 3 * index;
954 954
955 if (!EINA_FLT_CMP(pos1->stride, 0.0)) 955 if (pos1->stride != 0)
956 ptr1 = (float *)((char *)pos1->data + pos1->stride * index); 956 ptr1 = (float *)((char *)pos1->data + pos1->stride * index);
957 else 957 else
958 ptr1 = (float *)pos1->data + 3 * index; 958 ptr1 = (float *)pos1->data + 3 * index;