diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-10-30 21:31:32 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-10-30 21:31:32 +0300 |
commit | 603774c1eb8db827efc7a3bf9e81c230010eac8b (patch) | |
tree | fc08e863c3a0fdc9ae91c13b6ffd40a376a3adfa /source/blender/gpu/intern/gpu_state.c | |
parent | bf5ba496989ebb825b030f1583bfd8dc9b9a85ca (diff) |
Fix T56865: Selection of bones not working properly if the option `In Front` (old X-ray) is enabled
Differential Revision: https://developer.blender.org/D3828
Diffstat (limited to 'source/blender/gpu/intern/gpu_state.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_state.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_state.c b/source/blender/gpu/intern/gpu_state.c index 803c595aaf3..c7761d43548 100644 --- a/source/blender/gpu/intern/gpu_state.c +++ b/source/blender/gpu/intern/gpu_state.c @@ -75,6 +75,12 @@ void GPU_blend_set_func_separate( gpu_get_gl_blendfunction(dst_alpha)); } +void GPU_depth_range(float near, float far) +{ + /* glDepthRangef is only for OpenGL 4.1 or higher */ + glDepthRange(near, far); +} + void GPU_depth_test(bool enable) { if (enable) { |