fix(panel): applying materials works

This commit is contained in:
Nova
2022-08-22 15:59:52 -04:00
parent 7e6705a012
commit a81070a7c9
6 changed files with 42 additions and 28 deletions

View File

@@ -24,13 +24,11 @@ impl CompositorHandler for WaylandState {
compositor::with_states(surface, |data| {
if let Some(surface_states) = data.data_map.get::<RendererSurfaceStateUserData>() {
if let Some(core_surface) = data.data_map.get::<CoreSurface>() {
core_surface.wl_tex.replace(
surface_states
.borrow()
.texture(&self.renderer)
.cloned()
.map(SendWrapper::new),
);
*core_surface.wl_tex.lock() = surface_states
.borrow()
.texture(&self.renderer)
.cloned()
.map(SendWrapper::new);
}
}
});