dri2: Note that __DRI_API_GLES2 is also used for OpenGL ES 3.0
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Jul 2012 21:29:29 +0000 (14:29 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Aug 2012 22:41:03 +0000 (15:41 -0700)
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@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
include/GL/internal/dri_interface.h

index d3a66c5..97e1a1a 100644 (file)
@@ -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