Mesa (gles3): dri2: Note that __DRI_API_GLES2 is also used for OpenGL ES 3.

Paul Berry stereotype441 at kemper.freedesktop.org
Wed Aug 8 23:42:12 UTC 2012


Module: Mesa
Branch: gles3
Commit: 11d0c35d575567f15846d4671ba8a2a3ddd56c40
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=11d0c35d575567f15846d4671ba8a2a3ddd56c40

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed Jul 18 14:29:29 2012 -0700

dri2: Note that __DRI_API_GLES2 is also used for OpenGL ES 3.0

Unlike 1.x to 2.0, OpenGL ES 3.0 is backwards compatible with 2.0.  Use the
same API flag for both.  Applications that specifically want 3.0 will specify
this using the major / minor version attributes.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>

---

 include/GL/internal/dri_interface.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index d3a66c5..97e1a1a 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -800,8 +800,8 @@ struct __DRIdri2LoaderExtensionRec {
 #define __DRI_DRI2_VERSION 3
 
 #define __DRI_API_OPENGL	0	/**< OpenGL compatibility profile */
-#define __DRI_API_GLES		1
-#define __DRI_API_GLES2		2
+#define __DRI_API_GLES		1	/**< OpenGL ES 1.x */
+#define __DRI_API_GLES2		2	/**< OpenGL ES 2.0 or 3.0 */
 #define __DRI_API_OPENGL_CORE	3	/**< OpenGL 3.2+ core profile */
 
 #define __DRI_CTX_ATTRIB_MAJOR_VERSION		0




More information about the mesa-commit mailing list