From 401edc53fe6ad1a7556032e042194baab4deb180 Mon Sep 17 00:00:00 2001
From: Philip Rebohle <philip.rebohle@tu-dortmund.de>
Date: Thu, 20 May 2021 23:06:11 +0200
Subject: [PATCH] [dxgi] Show warning in DxgiOutput::GetFrameStatistics

---
 src/dxgi/dxgi_output.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/dxgi/dxgi_output.cpp b/src/dxgi/dxgi_output.cpp
index bee7c493..b7909b26 100644
--- a/src/dxgi/dxgi_output.cpp
+++ b/src/dxgi/dxgi_output.cpp
@@ -373,7 +373,12 @@ namespace dxvk {
 
     if (FAILED(hr))
       return hr;
-    
+
+    static bool s_errorShown = false;
+
+    if (!std::exchange(s_errorShown, true))
+      Logger::warn("DxgiOutput::GetFrameStatistics: Stub");
+
     *pStats = monitorInfo->FrameStats;
     m_monitorInfo->ReleaseMonitorData();
     return S_OK;