1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

Embraces std::make_[unique/shared] in place of .reset(new .

This commit is contained in:
Thomas Harte
2019-12-23 21:31:46 -05:00
parent ac604b30f3
commit 0dae608da5
40 changed files with 86 additions and 68 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ void ScanTarget::setup_pipeline() {
const bool needs_qam_buffer = (modals_.display_type == DisplayType::CompositeColour || modals_.display_type == DisplayType::SVideo);
if(needs_qam_buffer) {
if(!qam_chroma_texture_) {
qam_chroma_texture_.reset(new TextureTarget(LineBufferWidth, LineBufferHeight, QAMChromaTextureUnit, GL_NEAREST, false));
qam_chroma_texture_ = std::make_unique<TextureTarget>(LineBufferWidth, LineBufferHeight, QAMChromaTextureUnit, GL_NEAREST, false);
}
qam_separation_shader_ = qam_separation_shader();