GP: Fix unreported pixel glitches
authorAntonioya <blendergit@gmail.com>
Thu, 10 Jan 2019 12:10:46 +0000 (13:10 +0100)
committerAntonioya <blendergit@gmail.com>
Thu, 10 Jan 2019 12:13:44 +0000 (13:13 +0100)
commit16b0a742280ad557c7921abfc6c6cf4b8e783a92
tree1bed01b72f1a10376204259d493cf470e90d1c3a
parent80ffa73b3f87caef9511c073e6ff2e004de7f5b3
GP: Fix unreported pixel glitches

There was a problem in the caps start and in some situations, the pixel was wrong.

Also changed the way the caps are detected because use the alpha in negative was a hack that maybe will not work with all drivers.
source/blender/draw/engines/gpencil/shaders/gpencil_stroke_frag.glsl
source/blender/draw/engines/gpencil/shaders/gpencil_stroke_geom.glsl
source/blender/draw/engines/gpencil/shaders/gpencil_zdepth_mix_frag.glsl