summaryrefslogtreecommitdiffstats
path: root/ui/aura/bench/bench_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/bench/bench_main.cc')
-rw-r--r--ui/aura/bench/bench_main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/aura/bench/bench_main.cc b/ui/aura/bench/bench_main.cc
index 7ddbc9e..81248d7 100644
--- a/ui/aura/bench/bench_main.cc
+++ b/ui/aura/bench/bench_main.cc
@@ -207,7 +207,7 @@ class WebGLBench : public BenchCompositorObserver {
webgl_.SetBounds(bounds);
parent_->Add(&webgl_);
- context_.reset(ui::ContextFactory::GetInstance()->CreateOffscreenContext());
+ context_ = ui::ContextFactory::GetInstance()->CreateOffscreenContext();
context_->makeContextCurrent();
texture_ = new WebGLTexture(context_.get(), bounds.size());
fbo_ = context_->createFramebuffer();