Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/Source/WebKit/chromium/src/WebLayerTreeView.cpp b/Source/WebKit/chromium/src/WebLayerTreeView.cpp
index fed3db9..7de17fd 100644
--- a/Source/WebKit/chromium/src/WebLayerTreeView.cpp
+++ b/Source/WebKit/chromium/src/WebLayerTreeView.cpp
@@ -167,7 +167,10 @@ void WebLayerTreeView::finishAllRendering()
WebGraphicsContext3D* WebLayerTreeView::context()
{
- return GraphicsContext3DPrivate::extractWebGraphicsContext3D(m_private->layerTreeHost()->context()->context3D());
+ WebCore::CCGraphicsContext* c = m_private->layerTreeHost()->context();
+ if (!c)
+ return 0;
+ return GraphicsContext3DPrivate::extractWebGraphicsContext3D(c->context3D());
}
void WebLayerTreeView::loseCompositorContext(int numTimes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment