Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-12-24 11:01:21 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-12-24 11:28:45 +0300
commit28520e9652df2264bacf1f1f25ab657384d8817a (patch)
tree7420ecc46048aba3a90431c09993dd453b99d94e /source
parente5e885d0ecb9430a73e0a904cdb6035a2ef77e98 (diff)
Fix T59799: crash entering texture paint mode.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/modes/shaders/paint_wire_vert.glsl2
1 files changed, 1 insertions, 1 deletions
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);