Horizon EDA: Fix Intel GPU redraw issue
This commit is contained in:
		
							parent
							
								
									b67bf68f0d
								
							
						
					
					
						commit
						9195d6f6de
					
				
					 3 changed files with 24 additions and 0 deletions
				
			
		|  | @ -2,5 +2,6 @@ | |||
| { | ||||
|     imports = [ | ||||
|         ./burp.nix | ||||
|         ./horizon-eda.nix | ||||
|     ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										13
									
								
								overlays/horizon-eda.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								overlays/horizon-eda.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| { config, ... }: | ||||
| { | ||||
|     nixpkgs.overlays = [ | ||||
|         (self: super: { | ||||
|             horizon-eda = (super.horizon-eda.overrideAttrs (old: { | ||||
|                 # Add an environment variable to fix redraw issues on Intel Graphics | ||||
|                 patches = [ | ||||
|                     ./horizon_software_draw_surface.patch | ||||
|                 ]; | ||||
|             })); | ||||
|         }) | ||||
|     ]; | ||||
| } | ||||
							
								
								
									
										10
									
								
								overlays/horizon_software_draw_surface.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								overlays/horizon_software_draw_surface.patch
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| diff --git a/org.horizon_eda.HorizonEDA.desktop b/org.horizon_eda.HorizonEDA.desktop
 | ||||
| index 7551df54..d8df7800 100644
 | ||||
| --- a/org.horizon_eda.HorizonEDA.desktop
 | ||||
| +++ b/org.horizon_eda.HorizonEDA.desktop
 | ||||
| @@ -5,4 +5,4 @@ Categories=Development;Engineering;Electronics;
 | ||||
|  Type=Application | ||||
|  Terminal=false | ||||
|  Icon=org.horizon_eda.HorizonEDA | ||||
| -Exec=horizon-eda %U
 | ||||
| +Exec=env GDK_GL=software-draw-surface horizon-eda %U
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue