Skip to content

Commit

Permalink
ci: optimize ci workflow and renderer implementation
Browse files Browse the repository at this point in the history
- comment out the installation of mesa in the ci workflow
- change the value of `force_fallback_adapter` to `true` in the `offscreenrenderer` implementation
  • Loading branch information
falcucci committed Sep 19, 2024
1 parent 65b2fc0 commit 0a6c397
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}

- name: install Mesa
run: |
if [[ $RUNNER_OS == "Linux" ]]; then
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade
fi
# - name: install Mesa
# run: |
# if [[ $RUNNER_OS == "Linux" ]]; then
# sudo add-apt-repository ppa:kisak/kisak-mesa
# sudo apt update
# sudo apt upgrade
#
# sudo add-apt-repository ppa:oibaf/graphics-drivers
# sudo apt update
# sudo apt upgrade
# fi

- name: Install Fonts
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/offscreen_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl OffscreenRenderer {
let adapter = instance
.request_adapter(&RequestAdapterOptions {
power_preference: PowerPreference::default(),
force_fallback_adapter: false,
force_fallback_adapter: true,
compatible_surface: None,
})
.await
Expand Down

0 comments on commit 0a6c397

Please sign in to comment.