Skip to content

Commit 9707986

Browse files
committed
UPBGE: Fix GPU_framebuffer_bind_all_attachments
To use GPU_FB_MAX_SLOTS instead of hardcoded 4
1 parent 13828f0 commit 9707986

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

release/scripts/addons_contrib

Submodule addons_contrib updated from 2ff215a to 1cc12d9

source/blender/gpu/intern/gpu_framebuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ void GPU_framebuffer_bind_simple(GPUFrameBuffer *fb)
338338
void GPU_framebuffer_bind_all_attachments(GPUFrameBuffer *fb)
339339
{
340340
int slots = 0, i;
341-
GLenum attachments[4];
341+
GLenum attachments[GPU_FB_MAX_SLOTS];
342342

343343
for(i = 0; i < GPU_FB_MAX_SLOTS; i++) {
344344
if (fb->colortex[i]) {

0 commit comments

Comments
 (0)