Edit Mesh Selection: make sure that GL_SCISSOR_TEST is disabled.

Possible solution for T62999.
This commit is contained in:
mano-wii
2019-03-27 11:34:38 -03:00
parent 9624df5d1e
commit 00bdb5cdf0

View File

@@ -2515,6 +2515,7 @@ void DRW_framebuffer_select_id_setup(ARegion *ar, const bool clear)
glDisable(GL_DITHER);
GPU_depth_test(true);
glDisable(GL_SCISSOR_TEST);
if (clear) {
GPU_framebuffer_clear_color_depth(
@@ -2536,11 +2537,12 @@ void DRW_framebuffer_select_id_release(ARegion *ar)
ED_view3d_clipping_disable();
}
GPU_framebuffer_restore();
glEnable(GL_SCISSOR_TEST);
GPU_depth_test(false);
glEnable(GL_DITHER);
GPU_framebuffer_restore();
DRW_opengl_context_disable();
}