EEVEE: Fix bad framebuffer configuration

Was causing black / corrupted scene because of broken downsample

Add a debug check to not run into this problem again.
This commit is contained in:
2018-03-29 13:43:23 +02:00
parent 72b4d444f6
commit 8301b26452
2 changed files with 9 additions and 7 deletions

View File

@@ -616,6 +616,8 @@ void GPU_framebuffer_recursive_downsample(
}
}
BLI_assert(GPU_framebuffer_check_valid(fb, NULL));
glViewport(0, 0, current_dim[0], current_dim[1]);
callback(userData, i);