diff options
Diffstat (limited to 'ppapi/shared_impl/ppb_graphics_3d_shared.cc')
-rw-r--r-- | ppapi/shared_impl/ppb_graphics_3d_shared.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ppapi/shared_impl/ppb_graphics_3d_shared.cc b/ppapi/shared_impl/ppb_graphics_3d_shared.cc index 0f39663..d134b51 100644 --- a/ppapi/shared_impl/ppb_graphics_3d_shared.cc +++ b/ppapi/shared_impl/ppb_graphics_3d_shared.cc @@ -118,12 +118,16 @@ bool PPB_Graphics3D_Shared::CreateGLES2Impl( const int32 kMaxTransferBufferSize = 16 * 1024 * 1024; transfer_buffer_.reset(new gpu::TransferBuffer(gles2_helper_.get())); + bool bind_creates_resources = true; + bool free_everything_when_invisible = false; + // Create the object exposing the OpenGL API. gles2_impl_.reset(new gpu::gles2::GLES2Implementation( gles2_helper_.get(), share_gles2 ? share_gles2->share_group() : NULL, transfer_buffer_.get(), - true, + bind_creates_resources, + free_everything_when_invisible, GetGpuControl())); if (!gles2_impl_->Initialize( |