diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-08-13 16:21:47 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-08-13 16:21:47 +0300 |
commit | eccaa6da26b8fc58481367524725413349dd9059 (patch) | |
tree | b317f813789655011f919a7a066e7e8f8d0b3057 /source/blender/gpu/intern/gpu_framebuffer.c | |
parent | e3468d7ec2ce4be2ffc3e22bf86a6ace143c2f16 (diff) |
GPU_framebuffer: Fix incorrect last level.
Diffstat (limited to 'source/blender/gpu/intern/gpu_framebuffer.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c index 5ab5a0bcaad..cfb94cadaa9 100644 --- a/source/blender/gpu/intern/gpu_framebuffer.c +++ b/source/blender/gpu/intern/gpu_framebuffer.c @@ -596,7 +596,7 @@ void GPU_framebuffer_recursive_downsample( /* reset mipmap level range for the depth image */ GPU_texture_bind(tex, 0); glTexParameteri(GPU_texture_target(tex), GL_TEXTURE_BASE_LEVEL, 0); - glTexParameteri(GPU_texture_target(tex), GL_TEXTURE_MAX_LEVEL, i); + glTexParameteri(GPU_texture_target(tex), GL_TEXTURE_MAX_LEVEL, i-1); GPU_texture_unbind(tex); } |