Add support for GL_OES_draw_buffers_indexed.
authorMika Isojärvi <misojarvi@google.com>
Fri, 23 Jan 2015 23:09:27 +0000 (15:09 -0800)
committerJarkko Poyry <jpoyry@google.com>
Mon, 26 Jan 2015 18:44:13 +0000 (18:44 +0000)
Add support for GL_OES_draw_buffers_indexed to OpenGL wrappers.

Change-Id: Ic52883c69a03ef217797a069ac10f97ce9ece5e3

framework/opengl/wrapper/glwInitExtES.inl
scripts/opengl/src_util.py

index d22b588..db5d2e8 100644 (file)
@@ -65,3 +65,15 @@ if (de::contains(extSet, "GL_EXT_copy_image"))
 {
        gl->copyImageSubData    = (glCopyImageSubDataFunc)      loader->get("glCopyImageSubDataEXT");
 }
+
+if (de::contains(extSet, "GL_OES_draw_buffers_indexed"))
+{
+       gl->blendEquationSeparatei      = (glBlendEquationSeparateiFunc)        loader->get("glBlendEquationSeparateiOES");
+       gl->blendEquationi                      = (glBlendEquationiFunc)                        loader->get("glBlendEquationiOES");
+       gl->blendFuncSeparatei          = (glBlendFuncSeparateiFunc)            loader->get("glBlendFuncSeparateiOES");
+       gl->blendFunci                          = (glBlendFunciFunc)                            loader->get("glBlendFunciOES");
+       gl->colorMaski                          = (glColorMaskiFunc)                            loader->get("glColorMaskiOES");
+       gl->disablei                            = (glDisableiFunc)                                      loader->get("glDisableiOES");
+       gl->enablei                                     = (glEnableiFunc)                                       loader->get("glEnableiOES");
+       gl->isEnabledi                          = (glIsEnablediFunc)                            loader->get("glIsEnablediOES");
+}
index cc333ef..17cc880 100644 (file)
@@ -39,6 +39,7 @@ EXTENSIONS                    = [
        'GL_EXT_texture_compression_s3tc',
        'GL_IMG_texture_compression_pvrtc',
        'GL_EXT_copy_image',
+       'GL_OES_draw_buffers_indexed'
 ]
 
 def getGLRegistry ():