Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2017-04-18 12:28:11 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-04-18 13:52:29 +0300
commitf1fb605ec9ffd69b82652f3702de8b7ada570fd8 (patch)
tree6e5206c548c397452d5b138b4797ea0382ed7200 /source/blender/gpu/intern/gpu_viewport.c
parent40e69ad6df585dba8ee4b979919b0898de83b642 (diff)
GPUFramebuffer: Allow to bind a specific texture mip to framebuffer.
Diffstat (limited to 'source/blender/gpu/intern/gpu_viewport.c')
-rw-r--r--source/blender/gpu/intern/gpu_viewport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_viewport.c b/source/blender/gpu/intern/gpu_viewport.c
index dc71e030b7e..162b7e2d87a 100644
--- a/source/blender/gpu/intern/gpu_viewport.c
+++ b/source/blender/gpu/intern/gpu_viewport.c
@@ -225,7 +225,7 @@ void GPU_viewport_bind(GPUViewport *viewport, const rcti *rect)
goto cleanup;
}
- if (!GPU_framebuffer_texture_attach(dfbl->default_fb, dtxl->color, 0)) {
+ if (!GPU_framebuffer_texture_attach(dfbl->default_fb, dtxl->color, 0, 0)) {
ok = false;
goto cleanup;
}
@@ -236,7 +236,7 @@ void GPU_viewport_bind(GPUViewport *viewport, const rcti *rect)
ok = false;
goto cleanup;
}
- else if (!GPU_framebuffer_texture_attach(dfbl->default_fb, dtxl->depth, 0)) {
+ else if (!GPU_framebuffer_texture_attach(dfbl->default_fb, dtxl->depth, 0, 0)) {
ok = false;
goto cleanup;
}