diff options
author | Eric Anholt <eric@anholt.net> | 2017-03-15 17:51:46 -0700 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2017-09-22 18:45:58 +0200 |
commit | c58bff7e9601b3eeb0be95c0a60c6588d051e923 (patch) | |
tree | b3795d137d9cd4582a847292a9e2da8d76ddc7c9 /glamor | |
parent | 2f36c6faa0dac168cee6049d7dfac59a5e32edcd (diff) |
glamor: Fix dashed line rendering.
We were binding the screen pixmap as the dash and sampling its alpha,
which is usually just 1.0 (no dashing at all).
Please cherry-pick this to active stable branches.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
(cherry picked from commit fe0b297420fc1de8a7fab28457d0864b3182e967)
Diffstat (limited to 'glamor')
-rw-r--r-- | glamor/glamor_dash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_dash.c b/glamor/glamor_dash.c index 78a4fa37a..b53ce5c50 100644 --- a/glamor/glamor_dash.c +++ b/glamor/glamor_dash.c @@ -147,7 +147,7 @@ glamor_dash_setup(DrawablePtr drawable, GCPtr gc) goto bail; dash_pixmap = glamor_get_dash_pixmap(gc); - dash_priv = glamor_get_pixmap_private(pixmap); + dash_priv = glamor_get_pixmap_private(dash_pixmap); if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(dash_priv)) goto bail; |