Mesa (master): glapi: Fix build errors for ES.

Chia-I Wu olv at kemper.freedesktop.org
Wed Sep 15 09:57:55 UTC 2010


Module: Mesa
Branch: master
Commit: cad87ebc3a9c176a44f5193af7e16d6ecad4e03f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cad87ebc3a9c176a44f5193af7e16d6ecad4e03f

Author: Chia-I Wu <olv at lunarg.com>
Date:   Wed Sep 15 17:43:21 2010 +0800

glapi: Fix build errors for ES.

The latest glext.h defines GL_FIXED.  Test GL_OES_fixed_point instead to
decide whether to define GLfixed and GLclampx.

This fixes fdo bug #30205.

---

 src/mapi/glapi/glapi_priv.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mapi/glapi/glapi_priv.h b/src/mapi/glapi/glapi_priv.h
index 89f81c7..3ab553a 100644
--- a/src/mapi/glapi/glapi_priv.h
+++ b/src/mapi/glapi/glapi_priv.h
@@ -38,7 +38,7 @@
 #include "GL/gl.h"
 #include "GL/glext.h"
 
-#ifndef GL_FIXED
+#ifndef GL_OES_fixed_point
 typedef int GLfixed;
 typedef int GLclampx;
 #endif




More information about the mesa-commit mailing list