From: José Fonseca <[email protected]>

It's already defined in tests/util/piglit-util.h if necessary, furthermore
it's a macro on MSVC, so redefining it causes errors.

Trivial.
---
 tests/spec/gl-1.0/readpix.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/tests/spec/gl-1.0/readpix.c b/tests/spec/gl-1.0/readpix.c
index ab72806..7ee0be9 100644
--- a/tests/spec/gl-1.0/readpix.c
+++ b/tests/spec/gl-1.0/readpix.c
@@ -75,13 +75,6 @@ random_float(void)
        return (float) rand() / RAND_MAX;
 }
 
-/** Computes log base 2 (copied from Glean's misc.cpp) */
-double
-log2(double x) 
-{
-       return 1.4426950408889634 * log(x);
-}
-
 /**
  * (Copied from Glean's misc.cpp.)
  * Utility routine to compute error, expressed in bits
-- 
1.9.1

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to