Blender Git Commit Log

Git Commits -> Revision 9c01aaa

Revision 9c01aaa by Mike Erwin (master)
April 7, 2017, 07:08 (GMT)
OpenGL: disable rotate manipulator clipping on Mac

This fixes T51143.

gl_ClipDistance is part of GLSL version 1.3 but Mac is stuck on 1.2 for now.

This workaround uses GPU_SHADER_3D_UNIFORM_COLOR for the entire rotation widget, ignoring any clipping plane. The CLIPPING shader only works on GLSL 1.3+ so I removed its 1.2 cruft.

A legacy implementation using gl_ClipVertex might be possible, but is not worth the effort. This problem (and workaround) goes away when all platforms move to 3.3 core profile.

Commit Details:

Full Hash: 9c01aaa3dd7456d6811bad4f37190833fa5a04a0
Parent Commit: c986a2c
Lines Changed: +16, -5

2 Modified Paths:

/source/blender/editors/transform/transform_manipulator.c (+15, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_3D_clipped_uniform_color_vert.glsl (+1, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021