[Piglit] [PATCH] shader_runner: Avoid lround(), which is unsupported on Windows.
Paul Berry
stereotype441 at gmail.com
Mon Sep 17 18:13:28 PDT 2012
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55039
---
tests/shaders/shader_runner.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 0aff387..650a228 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -129,8 +129,8 @@ compile_glsl(GLenum target, bool release_text)
GLint shader_string_sizes[2];
/* Add a #version directive based on the GLSL requirement. */
- sprintf(version_string, "#version %ld\n",
- lround(100.0f * glsl_req_version));
+ sprintf(version_string, "#version %d\n",
+ (int) round(100.0f * glsl_req_version));
shader_strings[0] = version_string;
shader_string_sizes[0] = strlen(version_string);
shader_strings[1] = shader_string;
--
1.7.12
More information about the Piglit
mailing list