diff options
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 48f43cb55f3..f03685f33ac 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1959,18 +1959,18 @@ _mesa_GetIntegerv(GLenum pname, GLint *params) break; case TYPE_FLOAT_8: - params[7] = IROUND(((GLfloat *) p)[7]); - params[6] = IROUND(((GLfloat *) p)[6]); - params[5] = IROUND(((GLfloat *) p)[5]); - params[4] = IROUND(((GLfloat *) p)[4]); + params[7] = lroundf(((GLfloat *) p)[7]); + params[6] = lroundf(((GLfloat *) p)[6]); + params[5] = lroundf(((GLfloat *) p)[5]); + params[4] = lroundf(((GLfloat *) p)[4]); case TYPE_FLOAT_4: - params[3] = IROUND(((GLfloat *) p)[3]); + params[3] = lroundf(((GLfloat *) p)[3]); case TYPE_FLOAT_3: - params[2] = IROUND(((GLfloat *) p)[2]); + params[2] = lroundf(((GLfloat *) p)[2]); case TYPE_FLOAT_2: - params[1] = IROUND(((GLfloat *) p)[1]); + params[1] = lroundf(((GLfloat *) p)[1]); case TYPE_FLOAT: - params[0] = IROUND(((GLfloat *) p)[0]); + params[0] = lroundf(((GLfloat *) p)[0]); break; case TYPE_FLOATN_4: @@ -2074,18 +2074,18 @@ _mesa_GetInteger64v(GLenum pname, GLint64 *params) break; case TYPE_FLOAT_8: - params[7] = IROUND64(((GLfloat *) p)[7]); - params[6] = IROUND64(((GLfloat *) p)[6]); - params[5] = IROUND64(((GLfloat *) p)[5]); - params[4] = IROUND64(((GLfloat *) p)[4]); + params[7] = llround(((GLfloat *) p)[7]); + params[6] = llround(((GLfloat *) p)[6]); + params[5] = llround(((GLfloat *) p)[5]); + params[4] = llround(((GLfloat *) p)[4]); case TYPE_FLOAT_4: - params[3] = IROUND64(((GLfloat *) p)[3]); + params[3] = llround(((GLfloat *) p)[3]); case TYPE_FLOAT_3: - params[2] = IROUND64(((GLfloat *) p)[2]); + params[2] = llround(((GLfloat *) p)[2]); case TYPE_FLOAT_2: - params[1] = IROUND64(((GLfloat *) p)[1]); + params[1] = llround(((GLfloat *) p)[1]); case TYPE_FLOAT: - params[0] = IROUND64(((GLfloat *) p)[0]); + params[0] = llround(((GLfloat *) p)[0]); break; case TYPE_FLOATN_4: @@ -2922,22 +2922,22 @@ _mesa_GetIntegeri_v( GLenum pname, GLuint index, GLint *params ) switch (type) { case TYPE_FLOAT_4: case TYPE_FLOATN_4: - params[3] = IROUND(v.value_float_4[3]); + params[3] = lroundf(v.value_float_4[3]); case TYPE_FLOAT_3: case TYPE_FLOATN_3: - params[2] = IROUND(v.value_float_4[2]); + params[2] = lroundf(v.value_float_4[2]); case TYPE_FLOAT_2: case TYPE_FLOATN_2: - params[1] = IROUND(v.value_float_4[1]); + params[1] = lroundf(v.value_float_4[1]); case TYPE_FLOAT: case TYPE_FLOATN: - params[0] = IROUND(v.value_float_4[0]); + params[0] = lroundf(v.value_float_4[0]); break; case TYPE_DOUBLEN_2: - params[1] = IROUND(v.value_double_2[1]); + params[1] = lroundf(v.value_double_2[1]); case TYPE_DOUBLEN: - params[0] = IROUND(v.value_double_2[0]); + params[0] = lroundf(v.value_double_2[0]); break; case TYPE_INT: |