Skip to content

Commit 8d5f607

Browse files
committed
added comment with details
1 parent bc866de commit 8d5f607

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libprojectM/ProjectM.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ void ProjectM::StartPresetTransition(std::unique_ptr<Preset>&& preset, bool hard
243243
if (m_activePreset)
244244
{
245245
auto outputTexture = m_activePreset->OutputTexture();
246+
247+
// Check if the output texture is valid by testing if the OpenGL texturing target enum has been initialized.
248+
// In case of the initial preset transition, it is 0.
246249
if (outputTexture->Type() != 0) {
247250
preset->DrawInitialImage(outputTexture, GetRenderContext());
248251
}

0 commit comments

Comments
 (0)