Fix shadowed member variable with base class

This commit is contained in:
Cameron Gutman committed 2026-10-24 19:54:47 -05:00
1 parent 465c41b5c0
commit ba700d67ec
2 files changed
+4 -4

No files matched your search

@@ -60,7 +60,7 @@ D3D11VARenderer::D3D11VARenderer(int decoderSelectionPass)
m_DecoderSelectionPass(decoderSelectionPass), m_DecoderSelectionPass(decoderSelectionPass),
m_DevicesWithFL11Support(0), m_DevicesWithFL11Support(0),
m_DevicesWithCodecSupport(0), m_DevicesWithCodecSupport(0),
m_LastColorTrc(AVCOL_TRC_UNSPECIFIED), m_SwapChainColorTrc(AVCOL_TRC_UNSPECIFIED),
m_AllowTearing(false), m_AllowTearing(false),
m_OverlayLock(0), m_OverlayLock(0),
m_HwDeviceContext(nullptr) m_HwDeviceContext(nullptr)
@@ -800,7 +800,7 @@ void D3D11VARenderer::renderFrame(AVFrame* frame)
HRESULT hr; HRESULT hr;
if (frame->color_trc != m_LastColorTrc) { if (frame->color_trc != m_SwapChainColorTrc) {
if (frame->color_trc == AVCOL_TRC_SMPTE2084) { if (frame->color_trc == AVCOL_TRC_SMPTE2084) {
// Switch to Rec 2020 PQ (SMPTE ST 2084) colorspace for HDR10 rendering // Switch to Rec 2020 PQ (SMPTE ST 2084) colorspace for HDR10 rendering
hr = m_SwapChain->SetColorSpace1(DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020); hr = m_SwapChain->SetColorSpace1(DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020);
@@ -820,7 +820,7 @@ void D3D11VARenderer::renderFrame(AVFrame* frame)
} }
} }
m_LastColorTrc = frame->color_trc; m_SwapChainColorTrc = frame->color_trc;
} }
// Present according to the decoder parameters // Present according to the decoder parameters
@@ -90,7 +90,7 @@ private:
DXGI_FORMAT m_TextureFormat; DXGI_FORMAT m_TextureFormat;
int m_DisplayWidth; int m_DisplayWidth;
int m_DisplayHeight; int m_DisplayHeight;
AVColorTransferCharacteristic m_LastColorTrc; AVColorTransferCharacteristic m_SwapChainColorTrc;
bool m_AllowTearing; bool m_AllowTearing;