mesa/es: Make glDrawBuffersNV available in OpenGL ES 2.0
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 20 Sep 2011 22:14:34 +0000 (15:14 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 4 Oct 2011 19:25:57 +0000 (12:25 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/APIspec.xml

index 33029ea..5d5fc03 100644 (file)
        </proto>
 </template>
 
+<template name="DrawBuffers">
+       <proto>
+               <return type="void"/>
+               <param name="n" type="GLsizei"/>
+               <param name="bufs" type="const GLenum *"/>
+       </proto>
+</template>
+
 <api name="mesa" implementation="true">
        <category name="MESA"/>
 
         <!-- OES_EGL_image -->
         <function name="EGLImageTargetTexture2DOES" template="EGLImageTargetTexture2D"/>
         <function name="EGLImageTargetRenderbufferStorageOES" template="EGLImageTargetRenderbufferStorage"/>
+
+       <function name="DrawBuffersARB" template="DrawBuffers"/>
 </api>
 
 <api name="GLES1.1">
        <category name="EXT_multi_draw_arrays"/>
        <category name="OES_EGL_image"/>
 
+       <category name="NV_draw_buffers"/>
+       <function name="DrawBuffersNV" template="DrawBuffers"/>
+
        <function name="CullFace" template="CullFace"/>
 
        <function name="FrontFace" template="FrontFace"/>