diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-30 20:43:18 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-30 20:43:53 +0300 |
commit | 848cbe889b6330822d8bbf56a0bc7e755e153fd1 (patch) | |
tree | efaef6ed0d5da55d1072ee3222b5ab4cc508b9c6 /source/blender/gpu/intern/gpu_framebuffer.cc | |
parent | 9132fd882533991ab78beb4289efdf6b1da5178b (diff) |
Fix T79347 GPU: Segfault starting blender
Diffstat (limited to 'source/blender/gpu/intern/gpu_framebuffer.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.cc b/source/blender/gpu/intern/gpu_framebuffer.cc index 35432b0a8f9..056a449ac6d 100644 --- a/source/blender/gpu/intern/gpu_framebuffer.cc +++ b/source/blender/gpu/intern/gpu_framebuffer.cc @@ -450,7 +450,7 @@ static void gpu_framebuffer_update_attachments_and_fill_empty_slots(GPUFrameBuff BLI_assert(GPU_framebuffer_active_get() == fb); /* Update attachments */ - for (int i_type = GPU_FB_MAX_ATTACHEMENT; i_type >= 0; --i_type) { + for (int i_type = GPU_FB_MAX_ATTACHEMENT - 1; i_type >= 0; --i_type) { GPUAttachmentType type = static_cast<GPUAttachmentType>(i_type); GPUTexture *tex = fb->attachments[type].tex; |