Mesa (master): mesa: Use fpclassify for GL_OES_query_matrix on OpenBSD and NetBSD.
Chia-I Wu
olv at kemper.freedesktop.org
Wed Jun 30 05:01:36 UTC 2010
Module: Mesa
Branch: master
Commit: 2f0b01826dbae60fed60c0d744d42a1a4cde4a84
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f0b01826dbae60fed60c0d744d42a1a4cde4a84
Author: Chia-I Wu <olv at lunarg.com>
Date: Wed Jun 30 12:58:36 2010 +0800
mesa: Use fpclassify for GL_OES_query_matrix on OpenBSD and NetBSD.
Patch from Brad Smith <brad at comstyle.com>
The attached patch allows the GL_OES_query_matrix function to use the
systems fpclassify() for OpenBSD and NetBSD.
---
src/mesa/main/querymatrix.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c
index a0969f6..6f62415 100644
--- a/src/mesa/main/querymatrix.c
+++ b/src/mesa/main/querymatrix.c
@@ -71,7 +71,8 @@ fpclassify(double x)
}
#elif defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \
- defined(__DragonFly__) || (defined(__sun) && defined(__C99FEATURES__))
+ defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \
+ (defined(__sun) && defined(__C99FEATURES__))
/* fpclassify is available. */
More information about the mesa-commit
mailing list