diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-04-27 19:46:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-04-27 19:52:19 +0300 |
commit | 9cc9db87bbccf2b8648afa0db5af8240ec41c2c9 (patch) | |
tree | 2381bb787c8423b89b9865f9f49d00033c6eacf0 /source/blender/gpu/intern/gpu_viewport.c | |
parent | 351d7822862003047022f26f1b719e5678d8b8bc (diff) |
Fix missing action zones and emboss in the 3D viewport.
Not really happy with the fix, but it works. With the new window draw method
we are no longer storing the 3D viewport in 4 buffers, by having the GPU
viewport function directly as the 3rd buffer. This means we need to draw the
action zones into it, and so we need to keep the framebuffer bound a little
longer.
Diffstat (limited to 'source/blender/gpu/intern/gpu_viewport.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_viewport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_viewport.c b/source/blender/gpu/intern/gpu_viewport.c index 383ebec5b72..dc898c85773 100644 --- a/source/blender/gpu/intern/gpu_viewport.c +++ b/source/blender/gpu/intern/gpu_viewport.c @@ -548,6 +548,7 @@ void GPU_viewport_draw_to_screen(GPUViewport *viewport, const rcti *rect) void GPU_viewport_unbind(GPUViewport *UNUSED(viewport)) { + GPU_framebuffer_restore(); DRW_opengl_context_disable(); } |