We need to check against the state here and if the compilers assignes 0 to the
first item in an enum we are screwed here as the bitwise AND will always
evaluate to false.
This is a re-incarnation from
a486671bce76e405a8d7261f19b0f67ca678f0c4
{
Evas_Vec3 tmp;
- if (eina_matrix3_type_get(m) & EINA_MATRIX_TYPE_IDENTITY)
+ if (eina_matrix3_type_get(m) == EINA_MATRIX_TYPE_IDENTITY)
{
evas_vec3_copy(out, v);
return;
{
Evas_Vec3 tmp;
- if (eina_matrix4_type_get(m) & EINA_MATRIX_TYPE_IDENTITY)
+ if (eina_matrix4_type_get(m) == EINA_MATRIX_TYPE_IDENTITY)
{
evas_vec3_copy(out, v);
return;
{
Evas_Vec3 tmp;
- if (eina_matrix4_type_get(m) & EINA_MATRIX_TYPE_IDENTITY)
+ if (eina_matrix4_type_get(m) == EINA_MATRIX_TYPE_IDENTITY)
{
evas_vec3_copy(out, v);
return;
{
Evas_Vec4 tmp;
- if (eina_matrix4_type_get(m) & EINA_MATRIX_TYPE_IDENTITY)
+ if (eina_matrix4_type_get(m) == EINA_MATRIX_TYPE_IDENTITY)
{
evas_vec4_copy(out, v);
return;