diff --git a/src/gallium/drivers/d3d12/d3d12_video_enc.h b/src/gallium/drivers/d3d12/d3d12_video_enc.h index e1a76189c67..6cd929fb4ae 100644 --- a/src/gallium/drivers/d3d12/d3d12_video_enc.h +++ b/src/gallium/drivers/d3d12/d3d12_video_enc.h @@ -450,7 +450,7 @@ struct d3d12_video_encoder // and the pointer is stored on each d3d12_video_buffer // 2. On d3d12_video_buffer::destroy(), when all the slots // of the allocation pool are unused, the memory is released. - pipe_resource *m_pVideoTexArrayDPBPool; + pipe_resource *m_pVideoTexArrayDPBPool = NULL; std::shared_ptr m_spVideoTexArrayDPBPoolInUse; };