| Index: gpu/demos/framework/window.cc
|
| ===================================================================
|
| --- gpu/demos/framework/window.cc (revision 137438)
|
| +++ gpu/demos/framework/window.cc (working copy)
|
| @@ -44,7 +44,7 @@
|
| gles2_cmd_helper_.reset();
|
|
|
| if (decoder_.get()) {
|
| - decoder_->Destroy();
|
| + decoder_->Destroy(true);
|
| }
|
| }
|
|
|
| @@ -70,7 +70,7 @@
|
| return false;
|
| }
|
|
|
| - gpu::gles2::ContextGroup::Ref group(new gpu::gles2::ContextGroup(true));
|
| + gpu::gles2::ContextGroup::Ref group(new gpu::gles2::ContextGroup(NULL, true));
|
|
|
| decoder_.reset(gpu::gles2::GLES2Decoder::Create(group.get()));
|
| if (!decoder_.get())
|
| @@ -91,6 +91,8 @@
|
| if (!context_.get())
|
| return false;
|
|
|
| + context_->MakeCurrent(surface_);
|
| +
|
| std::vector<int32> attribs;
|
| if (!decoder_->Initialize(surface_.get(),
|
| context_.get(),
|
|
|