diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-11-06 17:46:07 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-11-06 17:46:07 +0300 |
commit | a145c7dc6202d82f39074a9f63d5809b87594e5e (patch) | |
tree | 01c2da36d3ff1e19c148061225ea14dbfd97f7ab /source/blender/python | |
parent | 50b43ff6d49cb101884e26f2c04aa9c19512b6cc (diff) |
Cleanup: No need to save/restor frame buffer twice
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/gpu/gpu_py_offscreen.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/python/gpu/gpu_py_offscreen.c b/source/blender/python/gpu/gpu_py_offscreen.c index d0ba48b69c5..05e87cb0f53 100644 --- a/source/blender/python/gpu/gpu_py_offscreen.c +++ b/source/blender/python/gpu/gpu_py_offscreen.c @@ -232,8 +232,6 @@ static PyObject *bpygpu_offscreen_draw_view3d(BPyGPUOffScreen *self, PyObject *a rv3d_mats = ED_view3d_mats_rv3d_backup(ar->regiondata); - GPUFrameBuffer *active = GPU_framebuffer_active_get(); - GPU_offscreen_bind(self->ofs, true); /* bind */ ED_view3d_draw_offscreen(depsgraph, @@ -253,7 +251,6 @@ static PyObject *bpygpu_offscreen_draw_view3d(BPyGPUOffScreen *self, PyObject *a NULL); GPU_offscreen_unbind(self->ofs, true); /* unbind */ - GPU_framebuffer_bind(active); ED_view3d_mats_rv3d_restore(ar->regiondata, rv3d_mats); MEM_freeN(rv3d_mats); |