Skip to content

Commit bc866de

Browse files
committed
check if active preset output texture is valid before copying
1 parent f94f99d commit bc866de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libprojectM/ProjectM.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ void ProjectM::StartPresetTransition(std::unique_ptr<Preset>&& preset, bool hard
242242

243243
if (m_activePreset)
244244
{
245-
preset->DrawInitialImage(m_activePreset->OutputTexture(), GetRenderContext());
245+
auto outputTexture = m_activePreset->OutputTexture();
246+
if (outputTexture->Type() != 0) {
247+
preset->DrawInitialImage(outputTexture, GetRenderContext());
248+
}
246249
}
247250

248251
if (hardCut)

0 commit comments

Comments
 (0)