UI: Fix protential stray GPU state preventing correct drawing
Fix potential issue with nodetree introduced in rB47c6f41b8926.
This commit is contained in:
parent
47c6f41b89
commit
d5b5b228e4
Notes:
blender-bot
2023-02-14 01:07:44 +01:00
Referenced by commit 40edb84dcf
, Revert "Fix T77564: VSE (and compositor background) lost stereoscopy preview"
|
@ -1784,6 +1784,7 @@ void drawnodespace(const bContext *C, ARegion *region)
|
|||
|
||||
UI_ThemeClearColor(TH_BACK);
|
||||
GPU_clear(GPU_COLOR_BIT);
|
||||
GPU_depth_test(false);
|
||||
|
||||
/* XXX snode->cursor set in coordspace for placing new nodes, used for drawing noodles too */
|
||||
UI_view2d_region_to_view(®ion->v2d,
|
||||
|
|
|
@ -1783,6 +1783,7 @@ void sequencer_draw_preview(const bContext *C,
|
|||
GPUFrameBuffer *framebuffer_overlay = GPU_viewport_framebuffer_overlay_get(viewport);
|
||||
GPU_framebuffer_bind_no_srgb(framebuffer_overlay);
|
||||
GPU_batch_presets_reset();
|
||||
GPU_depth_test(false);
|
||||
|
||||
if (sseq->render_size == SEQ_PROXY_RENDER_SIZE_NONE) {
|
||||
sequencer_preview_clear();
|
||||
|
|
Loading…
Reference in New Issue