Skip to content

Commit

Permalink
Updated gst plugin for new surfman-chains API
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Jeffrey committed Mar 10, 2020
1 parent 6e09fa0 commit 9c2163c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ports/gstplugin/servowebsrc.rs
Expand Up @@ -90,6 +90,7 @@ use surfman::GLApi;
use surfman::GLVersion;
use surfman::SurfaceAccess;
use surfman::SurfaceType;
use surfman_chains::SurfmanProvider;
use surfman_chains::SwapChain;
use surfman_chains_api::SwapChainAPI;

Expand Down Expand Up @@ -359,7 +360,8 @@ impl ServoWebSrcWindow {
(gl::FRAMEBUFFER_COMPLETE, gl::NO_ERROR)
);

let swap_chain = SwapChain::create_attached(&mut device, &mut context, access)
let provider = Box::new(SurfmanProvider::new(access));
let swap_chain = SwapChain::create_attached(&mut device, &mut context, provider)
.expect("Failed to create swap chain");

device.make_no_context_current().unwrap();
Expand Down

0 comments on commit 9c2163c

Please sign in to comment.