params[6] = FLOAT_TO_BOOLEAN(((GLfloat *) p)[6]);
params[5] = FLOAT_TO_BOOLEAN(((GLfloat *) p)[5]);
params[4] = FLOAT_TO_BOOLEAN(((GLfloat *) p)[4]);
+ /* fallthrough */
case TYPE_FLOAT_4:
case TYPE_FLOATN_4:
params[3] = FLOAT_TO_BOOLEAN(((GLfloat *) p)[3]);
+ /* fallthrough */
case TYPE_FLOAT_3:
case TYPE_FLOATN_3:
params[2] = FLOAT_TO_BOOLEAN(((GLfloat *) p)[2]);
+ /* fallthrough */
case TYPE_FLOAT_2:
case TYPE_FLOATN_2:
params[1] = FLOAT_TO_BOOLEAN(((GLfloat *) p)[1]);
+ /* fallthrough */
case TYPE_FLOAT:
case TYPE_FLOATN:
params[0] = FLOAT_TO_BOOLEAN(((GLfloat *) p)[0]);
case TYPE_DOUBLEN_2:
params[1] = FLOAT_TO_BOOLEAN(((GLdouble *) p)[1]);
+ /* fallthrough */
case TYPE_DOUBLEN:
params[0] = FLOAT_TO_BOOLEAN(((GLdouble *) p)[0]);
break;
case TYPE_INT_4:
case TYPE_UINT_4:
params[3] = INT_TO_BOOLEAN(((GLint *) p)[3]);
+ /* fallthrough */
case TYPE_INT_3:
case TYPE_UINT_3:
params[2] = INT_TO_BOOLEAN(((GLint *) p)[2]);
+ /* fallthrough */
case TYPE_INT_2:
case TYPE_UINT_2:
case TYPE_ENUM_2:
params[1] = INT_TO_BOOLEAN(((GLint *) p)[1]);
+ /* fallthrough */
case TYPE_INT:
case TYPE_UINT:
case TYPE_ENUM:
params[6] = ((GLfloat *) p)[6];
params[5] = ((GLfloat *) p)[5];
params[4] = ((GLfloat *) p)[4];
+ /* fallthrough */
case TYPE_FLOAT_4:
case TYPE_FLOATN_4:
params[3] = ((GLfloat *) p)[3];
+ /* fallthrough */
case TYPE_FLOAT_3:
case TYPE_FLOATN_3:
params[2] = ((GLfloat *) p)[2];
+ /* fallthrough */
case TYPE_FLOAT_2:
case TYPE_FLOATN_2:
params[1] = ((GLfloat *) p)[1];
+ /* fallthrough */
case TYPE_FLOAT:
case TYPE_FLOATN:
params[0] = ((GLfloat *) p)[0];
case TYPE_DOUBLEN_2:
params[1] = (GLfloat) (((GLdouble *) p)[1]);
+ /* fallthrough */
case TYPE_DOUBLEN:
params[0] = (GLfloat) (((GLdouble *) p)[0]);
break;
case TYPE_INT_4:
params[3] = (GLfloat) (((GLint *) p)[3]);
+ /* fallthrough */
case TYPE_INT_3:
params[2] = (GLfloat) (((GLint *) p)[2]);
+ /* fallthrough */
case TYPE_INT_2:
case TYPE_ENUM_2:
params[1] = (GLfloat) (((GLint *) p)[1]);
+ /* fallthrough */
case TYPE_INT:
case TYPE_ENUM:
params[0] = (GLfloat) (((GLint *) p)[0]);
case TYPE_UINT_4:
params[3] = (GLfloat) (((GLuint *) p)[3]);
+ /* fallthrough */
case TYPE_UINT_3:
params[2] = (GLfloat) (((GLuint *) p)[2]);
+ /* fallthrough */
case TYPE_UINT_2:
params[1] = (GLfloat) (((GLuint *) p)[1]);
+ /* fallthrough */
case TYPE_UINT:
params[0] = (GLfloat) (((GLuint *) p)[0]);
break;
params[6] = lroundf(((GLfloat *) p)[6]);
params[5] = lroundf(((GLfloat *) p)[5]);
params[4] = lroundf(((GLfloat *) p)[4]);
+ /* fallthrough */
case TYPE_FLOAT_4:
params[3] = lroundf(((GLfloat *) p)[3]);
+ /* fallthrough */
case TYPE_FLOAT_3:
params[2] = lroundf(((GLfloat *) p)[2]);
+ /* fallthrough */
case TYPE_FLOAT_2:
params[1] = lroundf(((GLfloat *) p)[1]);
+ /* fallthrough */
case TYPE_FLOAT:
params[0] = lroundf(((GLfloat *) p)[0]);
break;
case TYPE_FLOATN_4:
params[3] = FLOAT_TO_INT(((GLfloat *) p)[3]);
+ /* fallthrough */
case TYPE_FLOATN_3:
params[2] = FLOAT_TO_INT(((GLfloat *) p)[2]);
+ /* fallthrough */
case TYPE_FLOATN_2:
params[1] = FLOAT_TO_INT(((GLfloat *) p)[1]);
+ /* fallthrough */
case TYPE_FLOATN:
params[0] = FLOAT_TO_INT(((GLfloat *) p)[0]);
break;
case TYPE_DOUBLEN_2:
params[1] = FLOAT_TO_INT(((GLdouble *) p)[1]);
+ /* fallthrough */
case TYPE_DOUBLEN:
params[0] = FLOAT_TO_INT(((GLdouble *) p)[0]);
break;
case TYPE_INT_4:
case TYPE_UINT_4:
params[3] = ((GLint *) p)[3];
+ /* fallthrough */
case TYPE_INT_3:
case TYPE_UINT_3:
params[2] = ((GLint *) p)[2];
+ /* fallthrough */
case TYPE_INT_2:
case TYPE_UINT_2:
case TYPE_ENUM_2:
params[1] = ((GLint *) p)[1];
+ /* fallthrough */
case TYPE_INT:
case TYPE_UINT:
case TYPE_ENUM:
params[6] = llround(((GLfloat *) p)[6]);
params[5] = llround(((GLfloat *) p)[5]);
params[4] = llround(((GLfloat *) p)[4]);
+ /* fallthrough */
case TYPE_FLOAT_4:
params[3] = llround(((GLfloat *) p)[3]);
+ /* fallthrough */
case TYPE_FLOAT_3:
params[2] = llround(((GLfloat *) p)[2]);
+ /* fallthrough */
case TYPE_FLOAT_2:
params[1] = llround(((GLfloat *) p)[1]);
+ /* fallthrough */
case TYPE_FLOAT:
params[0] = llround(((GLfloat *) p)[0]);
break;
case TYPE_FLOATN_4:
params[3] = FLOAT_TO_INT(((GLfloat *) p)[3]);
+ /* fallthrough */
case TYPE_FLOATN_3:
params[2] = FLOAT_TO_INT(((GLfloat *) p)[2]);
+ /* fallthrough */
case TYPE_FLOATN_2:
params[1] = FLOAT_TO_INT(((GLfloat *) p)[1]);
+ /* fallthrough */
case TYPE_FLOATN:
params[0] = FLOAT_TO_INT(((GLfloat *) p)[0]);
break;
case TYPE_DOUBLEN_2:
params[1] = FLOAT_TO_INT(((GLdouble *) p)[1]);
+ /* fallthrough */
case TYPE_DOUBLEN:
params[0] = FLOAT_TO_INT(((GLdouble *) p)[0]);
break;
case TYPE_INT_4:
params[3] = ((GLint *) p)[3];
+ /* fallthrough */
case TYPE_INT_3:
params[2] = ((GLint *) p)[2];
+ /* fallthrough */
case TYPE_INT_2:
case TYPE_ENUM_2:
params[1] = ((GLint *) p)[1];
+ /* fallthrough */
case TYPE_INT:
case TYPE_ENUM:
params[0] = ((GLint *) p)[0];
case TYPE_UINT_4:
params[3] = ((GLuint *) p)[3];
+ /* fallthrough */
case TYPE_UINT_3:
params[2] = ((GLuint *) p)[2];
+ /* fallthrough */
case TYPE_UINT_2:
params[1] = ((GLuint *) p)[1];
+ /* fallthrough */
case TYPE_UINT:
params[0] = ((GLuint *) p)[0];
break;
params[6] = ((GLfloat *) p)[6];
params[5] = ((GLfloat *) p)[5];
params[4] = ((GLfloat *) p)[4];
+ /* fallthrough */
case TYPE_FLOAT_4:
case TYPE_FLOATN_4:
params[3] = ((GLfloat *) p)[3];
+ /* fallthrough */
case TYPE_FLOAT_3:
case TYPE_FLOATN_3:
params[2] = ((GLfloat *) p)[2];
+ /* fallthrough */
case TYPE_FLOAT_2:
case TYPE_FLOATN_2:
params[1] = ((GLfloat *) p)[1];
+ /* fallthrough */
case TYPE_FLOAT:
case TYPE_FLOATN:
params[0] = ((GLfloat *) p)[0];
case TYPE_DOUBLEN_2:
params[1] = ((GLdouble *) p)[1];
+ /* fallthrough */
case TYPE_DOUBLEN:
params[0] = ((GLdouble *) p)[0];
break;
case TYPE_INT_4:
params[3] = ((GLint *) p)[3];
+ /* fallthrough */
case TYPE_INT_3:
params[2] = ((GLint *) p)[2];
+ /* fallthrough */
case TYPE_INT_2:
case TYPE_ENUM_2:
params[1] = ((GLint *) p)[1];
+ /* fallthrough */
case TYPE_INT:
case TYPE_ENUM:
params[0] = ((GLint *) p)[0];
case TYPE_UINT_4:
params[3] = ((GLuint *) p)[3];
+ /* fallthrough */
case TYPE_UINT_3:
params[2] = ((GLuint *) p)[2];
+ /* fallthrough */
case TYPE_UINT_2:
params[1] = ((GLuint *) p)[1];
+ /* fallthrough */
case TYPE_UINT:
params[0] = ((GLuint *) p)[0];
break;
case TYPE_FLOAT_4:
case TYPE_FLOATN_4:
params[3] = lroundf(v.value_float_4[3]);
+ /* fallthrough */
case TYPE_FLOAT_3:
case TYPE_FLOATN_3:
params[2] = lroundf(v.value_float_4[2]);
+ /* fallthrough */
case TYPE_FLOAT_2:
case TYPE_FLOATN_2:
params[1] = lroundf(v.value_float_4[1]);
+ /* fallthrough */
case TYPE_FLOAT:
case TYPE_FLOATN:
params[0] = lroundf(v.value_float_4[0]);
case TYPE_DOUBLEN_2:
params[1] = lroundf(v.value_double_2[1]);
+ /* fallthrough */
case TYPE_DOUBLEN:
params[0] = lroundf(v.value_double_2[0]);
break;
case TYPE_FLOAT_4:
case TYPE_FLOATN_4:
params[3] = v.value_float_4[3];
+ /* fallthrough */
case TYPE_FLOAT_3:
case TYPE_FLOATN_3:
params[2] = v.value_float_4[2];
+ /* fallthrough */
case TYPE_FLOAT_2:
case TYPE_FLOATN_2:
params[1] = v.value_float_4[1];
+ /* fallthrough */
case TYPE_FLOAT:
case TYPE_FLOATN:
params[0] = v.value_float_4[0];
case TYPE_DOUBLEN_2:
params[1] = (GLfloat) v.value_double_2[1];
+ /* fallthrough */
case TYPE_DOUBLEN:
params[0] = (GLfloat) v.value_double_2[0];
break;
case TYPE_INT_4:
params[3] = (GLfloat) v.value_int_4[3];
+ /* fallthrough */
case TYPE_INT_3:
params[2] = (GLfloat) v.value_int_4[2];
+ /* fallthrough */
case TYPE_INT_2:
case TYPE_ENUM_2:
params[1] = (GLfloat) v.value_int_4[1];
+ /* fallthrough */
case TYPE_INT:
case TYPE_ENUM:
case TYPE_ENUM16:
case TYPE_UINT_4:
params[3] = (GLfloat) ((GLuint) v.value_int_4[3]);
+ /* fallthrough */
case TYPE_UINT_3:
params[2] = (GLfloat) ((GLuint) v.value_int_4[2]);
+ /* fallthrough */
case TYPE_UINT_2:
params[1] = (GLfloat) ((GLuint) v.value_int_4[1]);
+ /* fallthrough */
case TYPE_UINT:
params[0] = (GLfloat) ((GLuint) v.value_int_4[0]);
break;
case TYPE_FLOAT_4:
case TYPE_FLOATN_4:
params[3] = (GLdouble) v.value_float_4[3];
+ /* fallthrough */
case TYPE_FLOAT_3:
case TYPE_FLOATN_3:
params[2] = (GLdouble) v.value_float_4[2];
+ /* fallthrough */
case TYPE_FLOAT_2:
case TYPE_FLOATN_2:
params[1] = (GLdouble) v.value_float_4[1];
+ /* fallthrough */
case TYPE_FLOAT:
case TYPE_FLOATN:
params[0] = (GLdouble) v.value_float_4[0];
case TYPE_DOUBLEN_2:
params[1] = v.value_double_2[1];
+ /* fallthrough */
case TYPE_DOUBLEN:
params[0] = v.value_double_2[0];
break;
case TYPE_INT_4:
params[3] = (GLdouble) v.value_int_4[3];
+ /* fallthrough */
case TYPE_INT_3:
params[2] = (GLdouble) v.value_int_4[2];
+ /* fallthrough */
case TYPE_INT_2:
case TYPE_ENUM_2:
params[1] = (GLdouble) v.value_int_4[1];
+ /* fallthrough */
case TYPE_INT:
case TYPE_ENUM:
case TYPE_ENUM16:
case TYPE_UINT_4:
params[3] = (GLdouble) ((GLuint) v.value_int_4[3]);
+ /* fallthrough */
case TYPE_UINT_3:
params[2] = (GLdouble) ((GLuint) v.value_int_4[2]);
+ /* fallthrough */
case TYPE_UINT_2:
params[1] = (GLdouble) ((GLuint) v.value_int_4[1]);
+ /* fallthrough */
case TYPE_UINT:
params[0] = (GLdouble) ((GLuint) v.value_int_4[0]);
break;
case TYPE_FLOAT_4:
case TYPE_FLOATN_4:
params[3] = FLOAT_TO_FIXED(((GLfloat *) p)[3]);
+ /* fallthrough */
case TYPE_FLOAT_3:
case TYPE_FLOATN_3:
params[2] = FLOAT_TO_FIXED(((GLfloat *) p)[2]);
+ /* fallthrough */
case TYPE_FLOAT_2:
case TYPE_FLOATN_2:
params[1] = FLOAT_TO_FIXED(((GLfloat *) p)[1]);
+ /* fallthrough */
case TYPE_FLOAT:
case TYPE_FLOATN:
params[0] = FLOAT_TO_FIXED(((GLfloat *) p)[0]);
case TYPE_DOUBLEN_2:
params[1] = FLOAT_TO_FIXED(((GLdouble *) p)[1]);
+ /* fallthrough */
case TYPE_DOUBLEN:
params[0] = FLOAT_TO_FIXED(((GLdouble *) p)[0]);
break;
case TYPE_INT_4:
case TYPE_UINT_4:
params[3] = INT_TO_FIXED(((GLint *) p)[3]);
+ /* fallthrough */
case TYPE_INT_3:
case TYPE_UINT_3:
params[2] = INT_TO_FIXED(((GLint *) p)[2]);
+ /* fallthrough */
case TYPE_INT_2:
case TYPE_UINT_2:
case TYPE_ENUM_2:
params[1] = INT_TO_FIXED(((GLint *) p)[1]);
+ /* fallthrough */
case TYPE_INT:
case TYPE_UINT:
case TYPE_ENUM: