GPUFramebuffer: Fix assert triggering another assert.

This commit is contained in:
2018-03-30 20:15:03 +02:00
parent ab9adf9cdc
commit fb1463ff2b

View File

@@ -616,7 +616,7 @@ void GPU_framebuffer_recursive_downsample(
}
}
BLI_assert(GPU_framebuffer_check_valid(fb, NULL));
BLI_assert(GL_FRAMEBUFFER_COMPLETE == glCheckFramebufferStatus(GL_FRAMEBUFFER));
glViewport(0, 0, current_dim[0], current_dim[1]);
callback(userData, i);