| Index: ui/gfx/gl/gl_context_nsview.mm
|
| diff --git a/ui/gfx/gl/gl_context_nsview.mm b/ui/gfx/gl/gl_context_nsview.mm
|
| index a3aa7aac31c58bcdd90079b6a01c413da7eadc9c..1ad1c6de1a02ec66923bdecb38357d7ab975d36c 100644
|
| --- a/ui/gfx/gl/gl_context_nsview.mm
|
| +++ b/ui/gfx/gl/gl_context_nsview.mm
|
| @@ -46,9 +46,6 @@ bool GLContextNSView::Initialize(GLSurface* surface,
|
| return false;
|
| }
|
|
|
| - // Allow the surface to call back when in need of |FlushBuffer|.
|
| - static_cast<GLSurfaceNSView*>(surface)->SetGLContext(this);
|
| -
|
| return true;
|
| }
|
|
|
| @@ -64,6 +61,12 @@ bool GLContextNSView::MakeCurrent(GLSurface* surface) {
|
| if ([view window])
|
| [context_ setView:view];
|
| [context_ makeCurrentContext];
|
| +
|
| + if (!surface->OnMakeCurrent(this)) {
|
| + LOG(ERROR) << "Unable to make gl context current.";
|
| + return false;
|
| + }
|
| +
|
| return true;
|
| }
|
|
|
|
|