Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-08-18 22:29:47 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-18 22:29:47 +0300
commitd5b5b228e4d07ce8c7d32c40c87bebe6745663e2 (patch)
tree27da1c999d7bbb0ccf035ef9676278a9b9677301
parent47c6f41b8926befcf1ffe8b0dcccb90922c4b9be (diff)
UI: Fix protential stray GPU state preventing correct drawing
Fix potential issue with nodetree introduced in rB47c6f41b8926.
-rw-r--r--source/blender/editors/space_node/node_draw.c1
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 884f551bad1..6ce51db2005 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -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(&region->v2d,
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index edbe830683f..4b76f1432ee 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -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();