Skip to content

Commit

Permalink
check if active present output texture is valid before copying
Browse files Browse the repository at this point in the history
  • Loading branch information
hack-s committed Jul 7, 2024
1 parent f94f99d commit 20e3f91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libprojectM/ProjectM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ void ProjectM::StartPresetTransition(std::unique_ptr<Preset>&& preset, bool hard

if (m_activePreset)
{
preset->DrawInitialImage(m_activePreset->OutputTexture(), GetRenderContext());
auto outputTexture = m_activePreset->OutputTexture();
if (outputTexture->Type() != 0) {
preset->DrawInitialImage(outputTexture, GetRenderContext());
}
}

if (hardCut)
Expand Down

0 comments on commit 20e3f91

Please sign in to comment.