Skip to content

Commit

Permalink
glamor: Fix dashed line rendering.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
anholt committed Mar 16, 2017
1 parent 5b5ba7d commit fe0b297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glamor/glamor_dash.c
Expand Up @@ -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;
Expand Down

0 comments on commit fe0b297

Please sign in to comment.