Skip to content

Commit

Permalink
fix: force the gtk renderer to be gl for now (#1132)
Browse files Browse the repository at this point in the history
should fix various reported crashes related to the new 'ngl' renderer introduced in gtk4.14.

addresses #1061
  • Loading branch information
Doublonmousse authored Jul 4, 2024
1 parent 11308dd commit 7e1b386
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/rnote-ui/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ pub(crate) fn locale_dir() -> anyhow::Result<PathBuf> {

/// depending on the target platform we need to set some env vars on startup
pub(crate) fn setup_env() -> anyhow::Result<()> {
// workaround for issue 1061 https://github.com/flxzt/rnote/issues/1061
std::env::set_var("GSK_RENDERER", "gl");

if cfg!(target_os = "windows") {
let data_dir = data_dir()?;
let lib_dir = lib_dir()?;
Expand Down

0 comments on commit 7e1b386

Please sign in to comment.