Skip to content

Commit

Permalink
GameScope: Force DXVK_HDR=1 if GameScope HDR is enabled
Browse files Browse the repository at this point in the history
If DXVK_HDR is disabled, GameScope will still be unable to use HDR.
We should assume if GameScope HDR is enabled that a user also wants
HDR enabled from the DXVK side. There should be no reason to pass
--hdr-enabled to GameScope if you don't actually want to use HDR.

Fixes #1103.
  • Loading branch information
sonic2kk committed May 12, 2024
1 parent 59b421b commit 89b4784
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v14.0.20240503-2"
PROGVERS="v14.0.20240512-1"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -11731,7 +11731,13 @@ function GameScopeGui {
## FILTERING OPTIONS END ###

### HDR OPTIONS ###
if [ "$GSHDR" == "TRUE" ] ; then GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --hdr-enabled"; fi # Possible to check if any HDR displays available and warn if not?
# Possible to check if any HDR displays available and warn if not?
if [ "$GSHDR" == "TRUE" ]; then
GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --hdr-enabled";

writelog "INFO" "${FUNCNAME[0]} - GameScope HDR enabled, forcing DXVK_HDR=1"
export DXVK_HDR=1
fi
if [ "$GSHDRWGFS" == "TRUE" ]; then
# Don't enable GSHDRWGFS if GSHDR is not enabled first
if [ "$GSHDR" == "TRUE" ]; then
Expand Down

0 comments on commit 89b4784

Please sign in to comment.