https://bugs.webkit.org/show_bug.cgi?id=78142
Reviewed by Stephen White.
If we can't make the context current, we can't use it.
* platform/graphics/gpu/SharedGraphicsContext3D.cpp:
(WebCore::SharedGraphicsContext3D::get):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107127
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-08 James Robinson <jamesr@chromium.org>
+
+ [chromium] Check that we can make the SharedGraphicsContext3D current before returning
+ https://bugs.webkit.org/show_bug.cgi?id=78142
+
+ Reviewed by Stephen White.
+
+ If we can't make the context current, we can't use it.
+
+ * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
+ (WebCore::SharedGraphicsContext3D::get):
+
2012-02-08 Abhishek Arya <inferno@chromium.org>
Crash in Node::normalize.
attributes.canRecoverFromContextLoss = false; // Canvas contexts can not handle lost contexts.
attributes.shareResources = true;
static GraphicsContext3D* context = GraphicsContext3D::create(attributes, 0).leakRef();
+ if (context && !context->makeContextCurrent())
+ context = 0;
return context;
}