diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-04-18 12:28:11 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-04-18 13:52:29 +0300 |
commit | f1fb605ec9ffd69b82652f3702de8b7ada570fd8 (patch) | |
tree | 6e5206c548c397452d5b138b4797ea0382ed7200 /source/blender/gpu/intern/gpu_lamp.c | |
parent | 40e69ad6df585dba8ee4b979919b0898de83b642 (diff) |
GPUFramebuffer: Allow to bind a specific texture mip to framebuffer.
Diffstat (limited to 'source/blender/gpu/intern/gpu_lamp.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_lamp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_lamp.c b/source/blender/gpu/intern/gpu_lamp.c index 75198122ab5..86c40baf5cc 100644 --- a/source/blender/gpu/intern/gpu_lamp.c +++ b/source/blender/gpu/intern/gpu_lamp.c @@ -281,7 +281,7 @@ GPULamp *GPU_lamp_from_blender(Scene *scene, Object *ob, Object *par) return lamp; } - if (!GPU_framebuffer_texture_attach(lamp->fb, lamp->depthtex, 0)) { + if (!GPU_framebuffer_texture_attach(lamp->fb, lamp->depthtex, 0, 0)) { gpu_lamp_shadow_free(lamp); return lamp; } @@ -293,7 +293,7 @@ GPULamp *GPU_lamp_from_blender(Scene *scene, Object *ob, Object *par) return lamp; } - if (!GPU_framebuffer_texture_attach(lamp->fb, lamp->tex, 0)) { + if (!GPU_framebuffer_texture_attach(lamp->fb, lamp->tex, 0, 0)) { gpu_lamp_shadow_free(lamp); return lamp; } @@ -316,7 +316,7 @@ GPULamp *GPU_lamp_from_blender(Scene *scene, Object *ob, Object *par) return lamp; } - if (!GPU_framebuffer_texture_attach(lamp->blurfb, lamp->blurtex, 0)) { + if (!GPU_framebuffer_texture_attach(lamp->blurfb, lamp->blurtex, 0, 0)) { gpu_lamp_shadow_free(lamp); return lamp; } @@ -338,7 +338,7 @@ GPULamp *GPU_lamp_from_blender(Scene *scene, Object *ob, Object *par) return lamp; } - if (!GPU_framebuffer_texture_attach(lamp->fb, lamp->tex, 0)) { + if (!GPU_framebuffer_texture_attach(lamp->fb, lamp->tex, 0, 0)) { gpu_lamp_shadow_free(lamp); return lamp; } |