Fix T59799: crash entering texture paint mode.

This commit is contained in:
Brecht Van Lommel 2018-12-24 09:01:21 +01:00
parent e5e885d0ec
commit 28520e9652
Notes: blender-bot 2023-02-14 04:19:31 +01:00
Referenced by issue #59799, Texture paint mode crash
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ void main()
gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
/* Add offset in Z to avoid zfighting and render selected wires on top. */
/* TODO scale this bias using znear and zfar range. */
gl_Position.zw -= exp2(-20) * (is_select ? 2.0 : 1.0);
gl_Position.zw -= exp2(-20.0) * (is_select ? 2.0 : 1.0);
if (is_hidden) {
gl_Position = vec4(-2.0, -2.0, -2.0, 1.0);