From 4cedbb9cb764db1fa0841638bc3baeeeeec0a5f0 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 13 Oct 2023 07:44:11 +0200 Subject: [PATCH] Fix #113310: Python gpu.state.scissor_test_set Not Updating State When using scissor_test_set the framebuffer wasn't marked dirty and would not always translate the start to actual driver commands. Pull Request: https://projects.blender.org/blender/blender/pulls/113642 --- source/blender/gpu/intern/gpu_framebuffer_private.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/gpu/intern/gpu_framebuffer_private.hh b/source/blender/gpu/intern/gpu_framebuffer_private.hh index 84da1041cc8..336ffe9bc84 100644 --- a/source/blender/gpu/intern/gpu_framebuffer_private.hh +++ b/source/blender/gpu/intern/gpu_framebuffer_private.hh @@ -185,6 +185,7 @@ class FrameBuffer { inline void scissor_test_set(bool test) { scissor_test_ = test; + dirty_state_ = true; } inline void viewport_get(int r_viewport[4]) const