summaryrefslogtreecommitdiffstats
path: root/ppapi/lib/gl/gles2/gles2.c
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-06 02:11:17 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-06 02:11:17 +0000
commit3a9ac0a9aaf69b3cfc09d5194b83bb2a2130cac9 (patch)
treea8e04fa7a2f06a5fdf997ba1a9d93c7ced95f212 /ppapi/lib/gl/gles2/gles2.c
parentbc23425942484265dab5e2540a9c2844851f0703 (diff)
downloadchromium_src-3a9ac0a9aaf69b3cfc09d5194b83bb2a2130cac9.zip
chromium_src-3a9ac0a9aaf69b3cfc09d5194b83bb2a2130cac9.tar.gz
chromium_src-3a9ac0a9aaf69b3cfc09d5194b83bb2a2130cac9.tar.bz2
Add new PPB_OPENGLES2_DRAWBUFFERS_DEV_INTERFACE_1_0 pepper interface.
This allows applications to draw to multiple render targets at the same time. BUG=318019 Review URL: https://codereview.chromium.org/182213003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255222 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/lib/gl/gles2/gles2.c')
-rw-r--r--ppapi/lib/gl/gles2/gles2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/lib/gl/gles2/gles2.c b/ppapi/lib/gl/gles2/gles2.c
index dabb20c..3e9732d 100644
--- a/ppapi/lib/gl/gles2/gles2.c
+++ b/ppapi/lib/gl/gles2/gles2.c
@@ -1055,3 +1055,10 @@ void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
if (ext)
ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor);
}
+void GL_APIENTRY glDrawBuffersEXT(GLsizei count, const GLenum* bufs) {
+ const struct PPB_OpenGLES2DrawBuffers_Dev* ext =
+ glGetDrawBuffersInterfacePPAPI();
+ if (ext)
+ ext->DrawBuffersEXT(glGetCurrentContextPPAPI(), count, bufs);
+}
+