Skip to content

Commit

Permalink
openvr: Add cv_vr_use_window_icons
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Jun 20, 2024
1 parent 4ecce4a commit 0b492ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Backends/OpenVRBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ static bool GetVulkanDeviceExtensionsRequired( VkPhysicalDevice pPhysicalDevice,

gamescope::ConVar<bool> cv_vr_always_warp_cursor( "vr_always_warp_cursor", true, "Whether or not we should always warp the cursor, even if it is invisible so we get hover events." );
gamescope::ConVar<bool> cv_vr_use_modifiers( "vr_use_modifiers", true, "Use DMA-BUF modifiers?" );
gamescope::ConVar<bool> cv_vr_transparent_backing( "cv_vr_transparent_backing", true, "Should backing be transparent or not?" );
gamescope::ConVar<bool> cv_vr_transparent_backing( "vr_transparent_backing", true, "Should backing be transparent or not?" );
gamescope::ConVar<bool> cv_vr_use_window_icons( "vr_use_window_icons", true, "Should we use window icons if they are available?" );

// Not in public headers yet.
namespace vr
Expand Down Expand Up @@ -838,7 +839,7 @@ namespace gamescope
}
virtual void SetIcon( std::shared_ptr<std::vector<uint32_t>> uIconPixels ) override
{
if ( uIconPixels && uIconPixels->size() >= 3 )
if ( cv_vr_use_window_icons && uIconPixels && uIconPixels->size() >= 3 )
{
const uint32_t uWidth = (*uIconPixels)[0];
const uint32_t uHeight = (*uIconPixels)[1];
Expand Down

0 comments on commit 0b492ad

Please sign in to comment.