Index: trunk/src/content/shell/renderer/test_runner/TestPlugin.cpp |
=================================================================== |
--- trunk/src/content/shell/renderer/test_runner/TestPlugin.cpp (revision 261457) |
+++ trunk/src/content/shell/renderer/test_runner/TestPlugin.cpp (working copy) |
@@ -222,8 +222,11 @@ |
void TestPlugin::destroy() |
{ |
- if (m_layer.get()) |
- m_layer->ClearTexture(); |
+ if (m_layer.get()) { |
+ m_layer->WillModifyTexture(); |
+ m_layer->SetTextureMailbox(cc::TextureMailbox(), |
+ scoped_ptr<cc::SingleReleaseCallback>()); |
+ } |
if (m_container) |
m_container->setWebLayer(0); |
m_webLayer.reset(); |