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:
authorDalai Felinto <dfelinto@gmail.com>2019-01-25 17:58:31 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-01-25 18:00:20 +0300
commitd96f1fcd39473b5d8add473810a2e804b5c12f3e (patch)
treed919b5d862990cdb29b7406dce5ddf12f80a706a /source/blender/editors/space_image
parent5e6487e1f2db93456ae7a4e3c1438bc5a1dabd13 (diff)
Fix T60775: Stereo drawing in image editor broken (shows only right eye)
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/space_image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index b187baae0c2..ec87d611b31 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -635,7 +635,8 @@ static void image_main_region_draw(const bContext *C, ARegion *ar)
gpu_batch_presets_reset();
/* TODO(fclem) port to draw manager and remove the depth buffer allocation. */
- DefaultFramebufferList *fbl = GPU_viewport_framebuffer_list_get(ar->draw_buffer->viewport[0]);
+ GPUViewport *viewport = ar->draw_buffer->viewport[ar->draw_buffer->stereo ? sima->iuser.multiview_eye : 0];
+ DefaultFramebufferList *fbl = GPU_viewport_framebuffer_list_get(viewport);
GPU_framebuffer_bind(fbl->color_only_fb);
/* XXX not supported yet, disabling for now */