[Bf-blender-cvs] [28520e9652d] master: Fix T59799: crash entering texture paint mode.
Brecht Van Lommel
noreply at git.blender.org
Mon Dec 24 12:08:46 CET 2018
Commit: 28520e9652df2264bacf1f1f25ab657384d8817a
Author: Brecht Van Lommel
Date: Mon Dec 24 09:01:21 2018 +0100
Branches: master
https://developer.blender.org/rB28520e9652df2264bacf1f1f25ab657384d8817a
Fix T59799: crash entering texture paint mode.
===================================================================
M source/blender/draw/modes/shaders/paint_wire_vert.glsl
===================================================================
diff --git a/source/blender/draw/modes/shaders/paint_wire_vert.glsl b/source/blender/draw/modes/shaders/paint_wire_vert.glsl
index a92591b957d..b5ef921b8dc 100644
--- a/source/blender/draw/modes/shaders/paint_wire_vert.glsl
+++ b/source/blender/draw/modes/shaders/paint_wire_vert.glsl
@@ -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);
More information about the Bf-blender-cvs
mailing list