Index: ppapi/shared_impl/ppb_opengles2_shared.cc |
diff --git a/ppapi/shared_impl/ppb_opengles2_shared.cc b/ppapi/shared_impl/ppb_opengles2_shared.cc |
index 66af5d2fc2fdbcaa1f578590e96127e682bbea97..df82c0b4d34e19055c36c9d0c28b1e9e43fa7f9c 100644 |
--- a/ppapi/shared_impl/ppb_opengles2_shared.cc |
+++ b/ppapi/shared_impl/ppb_opengles2_shared.cc |
@@ -1564,6 +1564,13 @@ void VertexAttribDivisorANGLE(PP_Resource context_id, |
} |
} |
+void DrawBuffersEXT(PP_Resource context_id, GLsizei count, const GLenum* bufs) { |
+ Enter3D enter(context_id, true); |
+ if (enter.succeeded()) { |
+ ToGles2Impl(&enter)->DrawBuffersEXT(count, bufs); |
+ } |
+} |
+ |
} // namespace |
const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { |
static const struct PPB_OpenGLES2 ppb_opengles2 = { |
@@ -1678,4 +1685,10 @@ const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() { |
&EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT}; |
return &ppb_opengles2; |
} |
+const PPB_OpenGLES2DrawBuffers_Dev* |
+PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { // NOLINT |
+ static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { |
+ &DrawBuffersEXT}; |
+ return &ppb_opengles2; |
+} |
} // namespace ppapi |