| Index: Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp
|
| ===================================================================
|
| --- Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp (revision 95829)
|
| +++ Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp (working copy)
|
| @@ -38,8 +38,8 @@
|
| attributes.antialias = false;
|
| attributes.canRecoverFromContextLoss = false; // Canvas contexts can not handle lost contexts.
|
| attributes.shareResources = true;
|
| - static RefPtr<GraphicsContext3D> context = GraphicsContext3D::create(attributes, window);
|
| - return context.get();
|
| + static GraphicsContext3D* context = GraphicsContext3D::create(attributes, window).leakRef();
|
| + return context;
|
| }
|
|
|
| }
|
|
|