diff --git a/src/libprojectM/ProjectM.cpp b/src/libprojectM/ProjectM.cpp index 37e5f41a59..475f37f5d3 100644 --- a/src/libprojectM/ProjectM.cpp +++ b/src/libprojectM/ProjectM.cpp @@ -242,7 +242,13 @@ void ProjectM::StartPresetTransition(std::unique_ptr&& 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)