Skip to content

Commit

Permalink
Force Mesa GL to use sofware render.
Browse files Browse the repository at this point in the history
- Helps on some setups (i.e. WSL2, VcXsrv).
- Usually not needed.

Closes #22
  • Loading branch information
set-soft committed Jun 2, 2022
1 parent 8c8303b commit e7c9eb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Force Mesa GL to use sofware render. Helps on some setups. (#22)

## [1.6.12] - 2022-06-02
### Fixed
Expand Down
2 changes: 2 additions & 0 deletions src/pcbnew_do
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,8 @@ if __name__ == '__main__':

# Force english + UTF-8
os.environ['LANG'] = get_en_locale(logger)
# Force Mesa software rendering (otherwise, the 3D viewer may crash)
os.environ['LIBGL_ALWAYS_SOFTWARE'] = "1"
# Make sure the input file exists and has an extension
check_input_file(cfg, NO_PCB, WRONG_PCB_NAME)
cfg.board = load_pcb(cfg.input_file)
Expand Down

0 comments on commit e7c9eb2

Please sign in to comment.