[Bf-blender-cvs] [a145c7dc620] blender2.8: Cleanup: No need to save/restor frame buffer twice

Jacques Lucke noreply at git.blender.org
Tue Nov 6 15:46:18 CET 2018


Commit: a145c7dc6202d82f39074a9f63d5809b87594e5e
Author: Jacques Lucke
Date:   Tue Nov 6 15:46:07 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBa145c7dc6202d82f39074a9f63d5809b87594e5e

Cleanup: No need to save/restor frame buffer twice

===================================================================

M	source/blender/python/gpu/gpu_py_offscreen.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list