[Bf-blender-cvs] [d98c722a5a8] master: GPUFramebuffer: Tag dirty after recursing downsample

Clément Foucault noreply at git.blender.org
Sun Aug 30 13:36:08 CEST 2020


Commit: d98c722a5a863d2a5caded350c57fc8322c5548e
Author: Clément Foucault
Date:   Sat Aug 29 17:46:24 2020 +0200
Branches: master
https://developer.blender.org/rBd98c722a5a863d2a5caded350c57fc8322c5548e

GPUFramebuffer: Tag dirty after recursing downsample

Also do not bind automatically. This is fine since the framebuffer will
update next time it's bound.

===================================================================

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 f4b8a4040d4..3a125fe92b0 100644
--- a/source/blender/gpu/intern/gpu_framebuffer.cc
+++ b/source/blender/gpu/intern/gpu_framebuffer.cc
@@ -200,8 +200,7 @@ void FrameBuffer::recursive_downsample(int max_lvl,
       attachments_[att].mip = 0;
     }
   }
-  /* Reattach base level textures. */
-  this->bind(true);
+  dirty_attachments_ = true;
 }
 
 /** \} */



More information about the Bf-blender-cvs mailing list