Fix T57326: Adding Scene with Transparent Film to VSE Crashes Blender
Previous Framebuffer can be NULL.
This commit is contained in:
@@ -605,10 +605,14 @@ void GPU_framebuffer_blit(
|
||||
if (fb_write == prev_fb) {
|
||||
GPU_framebuffer_bind(fb_write); /* To update drawbuffers */
|
||||
}
|
||||
else {
|
||||
else if (prev_fb) {
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, prev_fb->object);
|
||||
gpu_framebuffer_current_set(prev_fb);
|
||||
}
|
||||
else {
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||
gpu_framebuffer_current_set(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user