| 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 6d291c456c9c1f883e5b16fc64d447e6a828ffde..aa335df3a734cb3f8011a4f1f1e097a9d7d49240 100644
|
| --- a/ppapi/shared_impl/ppb_opengles2_shared.cc
|
| +++ b/ppapi/shared_impl/ppb_opengles2_shared.cc
|
| @@ -1566,6 +1566,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 = {
|
| @@ -1680,4 +1687,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
|
|
|