@@ -214,7 +214,7 @@ pub enum ThreadCommand {
214214 NodeAdded {
215215 node : DrmNode ,
216216 gbm : GbmAllocator < DrmDeviceFd > ,
217- egl : EGLContext , // TODO: Option for software rendering
217+ egl : EGLContext ,
218218 sync : SyncSender < ( ) > ,
219219 } ,
220220 NodeRemoved {
@@ -500,12 +500,6 @@ fn surface_thread(
500500
501501 let api = GpuManager :: new ( GbmGlowBackend :: < DrmDeviceFd > :: default ( ) )
502502 . context ( "Failed to initialize rendering api" ) ?;
503- /*
504- let software_api = GpuManager::new(GbmPixmanBackend::<DrmDeviceFd>::with_allocator_flags(
505- gbm_flags,
506- ))
507- .context("Failed to initialize software rendering");
508- */
509503
510504 #[ cfg( feature = "debug" ) ]
511505 let egui = {
@@ -725,17 +719,11 @@ impl SurfaceThreadState {
725719 gbm : GbmAllocator < DrmDeviceFd > ,
726720 egl : EGLContext ,
727721 ) -> Result < ( ) > {
728- //if let Some(egl) = egl {
729722 let mut renderer =
730723 unsafe { GlowRenderer :: new ( egl) } . context ( "Failed to create renderer" ) ?;
731724 init_shaders ( renderer. borrow_mut ( ) ) . context ( "Failed to initialize shaders" ) ?;
732725
733726 self . api . as_mut ( ) . add_node ( node, gbm, renderer) ;
734- /*
735- } else {
736- self.software_api.as_mut().add_node(node, gbm);
737- }
738- */
739727
740728 Ok ( ( ) )
741729 }
@@ -744,7 +732,6 @@ impl SurfaceThreadState {
744732 self . api . as_mut ( ) . remove_node ( & node) ;
745733 // force enumeration
746734 let _ = self . api . devices ( ) ;
747- //self.software_api.as_mut().remove_node(node);
748735 }
749736
750737 #[ profiling:: function]
0 commit comments