| 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 00cb2ed2f4d57f9df1a19c0f3732794d8401cc61..191965d9445c78e9bf22137c698a442d015748c7 100644
|
| --- a/ppapi/shared_impl/ppb_opengles2_shared.cc
|
| +++ b/ppapi/shared_impl/ppb_opengles2_shared.cc
|
| @@ -1573,6 +1573,13 @@ void DrawBuffersEXT(PP_Resource context_id, GLsizei count, const GLenum* bufs) {
|
| }
|
| }
|
|
|
| +void LoadIdentity(PP_Resource context_id) {
|
| + Enter3D enter(context_id, true);
|
| + if (enter.succeeded()) {
|
| + ToGles2Impl(&enter)->LoadIdentity();
|
| + }
|
| +}
|
| +
|
| } // namespace
|
| const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() {
|
| static const struct PPB_OpenGLES2 ppb_opengles2 = {
|
| @@ -1646,7 +1653,8 @@ const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() {
|
| &VertexAttrib2f, &VertexAttrib2fv,
|
| &VertexAttrib3f, &VertexAttrib3fv,
|
| &VertexAttrib4f, &VertexAttrib4fv,
|
| - &VertexAttribPointer, &Viewport};
|
| + &VertexAttribPointer, &Viewport,
|
| + &LoadIdentity};
|
| return &ppb_opengles2;
|
| }
|
| const PPB_OpenGLES2InstancedArrays*
|
|
|