Skip to content

Commit

Permalink
UPBGE: Fix GPU_framebuffer_bind_all_attachments
Browse files Browse the repository at this point in the history
        To use GPU_FB_MAX_SLOTS instead of hardcoded 4
  • Loading branch information
DCubix committed Mar 21, 2017
1 parent 13828f0 commit 9707986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/scripts/addons_contrib
Submodule addons_contrib updated from 2ff215 to 1cc12d
2 changes: 1 addition & 1 deletion source/blender/gpu/intern/gpu_framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void GPU_framebuffer_bind_simple(GPUFrameBuffer *fb)
void GPU_framebuffer_bind_all_attachments(GPUFrameBuffer *fb)
{
int slots = 0, i;
GLenum attachments[4];
GLenum attachments[GPU_FB_MAX_SLOTS];

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

0 comments on commit 9707986

Please sign in to comment.