[Bf-blender-cvs] [4c11e573166] master: Cleanup: add 'if 0' comment why code is repeated
Campbell Barton
noreply at git.blender.org
Thu Apr 18 15:20:22 CEST 2019
Commit: 4c11e5731664c70c126a89b3fcc147004cc0b825
Author: Campbell Barton
Date: Thu Apr 18 15:16:36 2019 +0200
Branches: master
https://developer.blender.org/rB4c11e5731664c70c126a89b3fcc147004cc0b825
Cleanup: add 'if 0' comment why code is repeated
Avoid potentially adding back the problem in the future.
===================================================================
M source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl
===================================================================
diff --git a/source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl b/source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl
index 62928ef5d86..7b1001b7449 100644
--- a/source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl
+++ b/source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl
@@ -20,6 +20,11 @@ void do_vertex(const int i, vec4 pos, float coord, vec2 offset)
gl_Position = pos;
/* Multiply offset by 2 because gl_Position range is [-1..1]. */
gl_Position.xy += offset * 2.0 * pos.w;
+ /* Correct but fails due to an AMD compiler bug, see: T62792.
+ * Do inline instead. */
+#if 0
+ world_clip_planes_set_clip_distance(gl_in[i].gl_ClipDistance);
+#endif
EmitVertex();
}
More information about the Bf-blender-cvs
mailing list