check fb valid

This commit is contained in:
2019-10-15 17:08:29 +02:00
parent 5f002cca53
commit b096d250e2
3 changed files with 21 additions and 7 deletions

View File

@@ -408,7 +408,7 @@ void NodeStrokePreview::draw_stroke_immediate()
b->m_pattern_texture->bind() :
glBindTexture(GL_TEXTURE_2D, 0);
glActiveTexture(GL_TEXTURE3);
m_rtt_mixer.bindTexture();
b->m_tip_mix > 0.f ? m_rtt_mixer.bindTexture() : glBindTexture(GL_TEXTURE_2D, 0);
auto frames = stroke_draw_compute(m_stroke, zoom);
m_rtt.clear();
for (auto& f : frames)