diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-29 18:46:24 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-30 14:11:03 +0300 |
commit | d98c722a5a863d2a5caded350c57fc8322c5548e (patch) | |
tree | c674078323d25869c6f1ef5311884e02f81d0009 /source/blender/gpu/intern/gpu_framebuffer.cc | |
parent | 8527d84d3588563123bfad7ccbdeeff62ee90bdb (diff) |
GPUFramebuffer: Tag dirty after recursing downsample
Also do not bind automatically. This is fine since the framebuffer will
update next time it's bound.
Diffstat (limited to 'source/blender/gpu/intern/gpu_framebuffer.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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; } /** \} */ |