[Bf-blender-cvs] [848cbe889b6] master: Fix T79347 GPU: Segfault starting blender
Clément Foucault
noreply at git.blender.org
Thu Jul 30 19:44:23 CEST 2020
Commit: 848cbe889b6330822d8bbf56a0bc7e755e153fd1
Author: Clément Foucault
Date: Thu Jul 30 19:43:18 2020 +0200
Branches: master
https://developer.blender.org/rB848cbe889b6330822d8bbf56a0bc7e755e153fd1
Fix T79347 GPU: Segfault starting blender
===================================================================
M source/blender/gpu/intern/gpu_framebuffer.cc
===================================================================
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;
More information about the Bf-blender-cvs
mailing list