Skip to content

Commit

Permalink
Automatically use EGL when nvidia is present
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevault committed Apr 4, 2017
1 parent 0f8fb1f commit 2177d30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void detect_proprietary() {
break;
}
if (strstr(line, "nvidia")) {
setenv("WLC_USE_EGLDEVICE", "1");
fprintf(stderr, "\x1B[1;31mWarning: Proprietary nvidia driver support is considered experimental.\x1B[0m\n");
free(line);
break;
Expand Down

0 comments on commit 2177d30

Please sign in to comment.