Don't set HDR metadata on the DXGI swapchain
This is no longer recommended by Microsoft due inconsistencies with display support for HDR metadata.
This commit is contained in:
parent
e44e29e7eb
commit
114074bfd8
2 changed files with 28 additions and 76 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "renderer.h"
|
||||
#include "pacer/pacer.h"
|
||||
|
||||
#include <d3d11_1.h>
|
||||
#include <dxgi1_5.h>
|
||||
|
|
@ -19,7 +18,6 @@ public:
|
|||
virtual bool prepareDecoderContext(AVCodecContext* context, AVDictionary**) override;
|
||||
virtual void renderFrame(AVFrame* frame) override;
|
||||
virtual void notifyOverlayUpdated(Overlay::OverlayType) override;
|
||||
virtual void setHdrMode(bool enabled) override;
|
||||
virtual int getRendererAttributes() override;
|
||||
virtual int getDecoderCapabilities() override;
|
||||
virtual bool needsTestFrame() override;
|
||||
|
|
@ -50,6 +48,7 @@ private:
|
|||
int m_DisplayHeight;
|
||||
int m_LastColorSpace;
|
||||
bool m_LastFullRange;
|
||||
AVColorTransferCharacteristic m_LastColorTrc;
|
||||
|
||||
bool m_AllowTearing;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue