Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ashton <joshua@froggi.es>2023-05-12 21:29:38 +0300
committerJoshua Ashton <joshua@froggi.es>2023-05-12 21:42:00 +0300
commitf1aa1d27d2a40110c7a347cc3ab098e6b28da2da (patch)
tree031dbc31dbf1fb5f9f07ba996ab38c4d31738cc9
parentcae0a1cef3f4917cf525c5546da302ff5f968e8e (diff)
[d3d11] Fix min luminance of HDR Metadatahdr-metadata-typo-fix
This should be a multiply instead of a divide. Values are 1/10000th of a nit (0.0001 nit).
-rw-r--r--src/d3d11/d3d11_swapchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/d3d11/d3d11_swapchain.cpp b/src/d3d11/d3d11_swapchain.cpp
index da0bc20c..b6dcc165 100644
--- a/src/d3d11/d3d11_swapchain.cpp
+++ b/src/d3d11/d3d11_swapchain.cpp
@@ -32,7 +32,7 @@ namespace dxvk {
}
static float ConvertMinLuminance(UINT dxgiLuminance) {
- return float(dxgiLuminance) / 0.0001f;
+ return float(dxgiLuminance) * 0.0001f;
}
static float ConvertLevel(UINT16 dxgiLevel) {