Fix #32941: Sequencer Preview shows texture which is apart of the window.
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 23 Oct 2012 12:25:08 +0000 (12:25 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 23 Oct 2012 12:25:08 +0000 (12:25 +0000)
commit7bf4a2d3745de59c162106922180ae4714dd8f07
tree66cd4fe97d46c2efc4a65d222ac9846268577a30
parent9c58865d201372ddd615f1f9b36d37cbc6937b98
Fix #32941: Sequencer Preview shows texture which is apart of the window.

Issue was caused by buffer shadows were binding buffer after offscreen buffers
was bind which lead to some unpredictable results.

Made it so ED_view3d_draw_offscreen wouldn't bind any buffers and for proper
shadows ED_view3d_draw_offscreen_init should be manually be called before
drawing to an offscreen.

This should also make open gl render with AA enabled a bit faster.

Also fixed missing sequencer cache invalidation when open gl render type is
changing.

Material and Rendered modes are still a TODO for sequencer.
source/blender/editors/include/ED_view3d.h
source/blender/editors/render/render_opengl.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/makesrna/intern/rna_scene.c