summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/uniform_query.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp
index b53f60bc456..2fdbc83be24 100644
--- a/src/mesa/main/uniform_query.cpp
+++ b/src/mesa/main/uniform_query.cpp
@@ -576,7 +576,7 @@ _mesa_get_uniform(struct gl_context *ctx, GLuint program, GLint location,
break;
}
case GLSL_TYPE_FLOAT: {
- int64_t tmp = src[sidx].f;
+ int64_t tmp = (int64_t) roundf(src[sidx].f);
memcpy(&dst[didx].u, &tmp, sizeof(tmp));
break;
}