Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/libprojectM/ProjectM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,13 @@ void ProjectM::StartPresetTransition(std::unique_ptr<Preset>&& preset, bool hard

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

// Check if the output texture is valid by testing if the OpenGL texturing target enum has been initialized.
// In case of the initial preset transition, it is 0.
if (outputTexture->Type() != 0) {
preset->DrawInitialImage(outputTexture, GetRenderContext());
}
}

if (hardCut)
Expand Down