| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
|
| index da5ee5d11ec794e67e0215e880d68fbc40e50abc..488589a9e5b6726333bad6daa586c9796c84d0cb 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
|
| @@ -380,7 +380,13 @@ public:
|
| void loseContextImpl(LostContextMode, AutoRecoveryMethod);
|
|
|
| WebGraphicsContext3D* webContext() const { return drawingBuffer()->context(); }
|
| - gpu::gles2::GLES2Interface* contextGL() const { return drawingBuffer()->contextGL(); }
|
| + gpu::gles2::GLES2Interface* contextGL() const
|
| + {
|
| + DrawingBuffer* d = drawingBuffer();
|
| + if (!d)
|
| + return nullptr;
|
| + return d->contextGL();
|
| + }
|
| WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); }
|
| Extensions3DUtil* extensionsUtil();
|
|
|
|
|