summaryrefslogtreecommitdiffstats
path: root/ui/aura/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/window.cc')
-rw-r--r--ui/aura/window.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 30f53fa..ae0778d 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -167,6 +167,8 @@ ui::Layer* Window::RecreateLayer() {
return NULL;
old_layer->set_delegate(NULL);
+ if (delegate_ && old_layer->external_texture())
+ old_layer->SetExternalTexture(delegate_->CopyTexture());
layer_ = new ui::Layer(old_layer->type());
layer_owner_.reset(layer_);
layer_->SetVisible(old_layer->visible());