diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-17 20:21:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-18 04:43:52 +0300 |
commit | 1f2edba1fbf39a40b07bdf37276d2650655a4edd (patch) | |
tree | 8a4421f5b3eeede0cc37cd1dde19d3c9983dfb45 /source/blender/editors/sculpt_paint/paint_cursor.c | |
parent | d19b3019d9aee026b7aab738624795da162f6a8b (diff) |
Cleanup: GPU: Encapsulate scissor test
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_cursor.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 6b32d879c8d..d0082769575 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -615,8 +615,7 @@ static bool paint_draw_tex_overlay(UnifiedPaintSettings *ups, if (load_tex(brush, vc, zoom, col, primary)) { GPU_color_mask(true, true, true, true); - GPU_depth_mask(false); - glDepthFunc(GL_ALWAYS); + GPU_depth_test(false); if (mtex->brush_map_mode == MTEX_MAP_MODE_VIEW) { GPU_matrix_push(); |