[Mesa-dev] [PATCH 1/2] mesa: move GL_HALF_FLOAT_OES definition to glheader.h
Brian Paul
brian.e.paul at gmail.com
Sat Sep 22 08:35:47 PDT 2012
From: Brian Paul <brianp at vmware.com>
---
src/mesa/main/glheader.h | 7 +++++++
src/mesa/main/readpix.c | 5 -----
src/mesa/main/teximage.c | 6 ------
3 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h
index 3152323..e93ca30 100644
--- a/src/mesa/main/glheader.h
+++ b/src/mesa/main/glheader.h
@@ -144,6 +144,13 @@ typedef void *GLeglImageOES;
#endif
+/* Inexplicably, GL_HALF_FLOAT_OES has a different value than GL_HALF_FLOAT.
+ */
+#ifndef GL_HALF_FLOAT_OES
+#define GL_HALF_FLOAT_OES 0x8D61
+#endif
+
+
/**
* Internal token to represent a GLSL shader program (a collection of
* one or more shaders that get linked together). Note that GLSL
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index e10f921..1793095 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -40,11 +40,6 @@
#include "fbobject.h"
#include "teximage.h"
-/* Inexplicably, GL_HALF_FLOAT_OES has a different value than GL_HALF_FLOAT.
- */
-#ifndef GL_HALF_FLOAT_OES
-#define GL_HALF_FLOAT_OES 0x8D61
-#endif
/**
* Tries to implement glReadPixels() of GL_DEPTH_COMPONENT using memcpy of the
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index fdd6129..90d64c7 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -50,12 +50,6 @@
#include "glformats.h"
-/* Inexplicably, GL_HALF_FLOAT_OES has a different value than GL_HALF_FLOAT.
- */
-#ifndef GL_HALF_FLOAT_OES
-#define GL_HALF_FLOAT_OES 0x8D61
-#endif
-
/**
* State changes which we care about for glCopyTex[Sub]Image() calls.
* In particular, we care about pixel transfer state and buffer state
--
1.7.4.1
More information about the mesa-dev
mailing list