diff options
author | Eric Anholt <eric@anholt.net> | 2014-01-12 07:18:50 +0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-03-10 13:57:21 -0700 |
commit | 25be6b384298a7769fedb6d9b5bdc370398c9c95 (patch) | |
tree | 783a59af5ee190d150e8db966a5cd6787faafb62 /glamor/glamor_gradient.c | |
parent | bd09292debbb810db06b187d4e61c9416b5e565e (diff) |
glamor: Fix a mismatched glamor_get/put_context().
We don't call GL in this function any more, so we can just drop the
get.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Markus Wick <markus at selfnet.de>
Diffstat (limited to 'glamor/glamor_gradient.c')
-rw-r--r-- | glamor/glamor_gradient.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/glamor/glamor_gradient.c b/glamor/glamor_gradient.c index 9f6f1b1cf..6a7b528f9 100644 --- a/glamor/glamor_gradient.c +++ b/glamor/glamor_gradient.c @@ -46,8 +46,6 @@ static const char * _glamor_create_getcolor_fs_source(ScreenPtr screen, int stops_count, int use_array) { - glamor_screen_private *glamor_priv; - char *gradient_fs = NULL; #define gradient_fs_getcolor\ @@ -174,9 +172,6 @@ _glamor_create_getcolor_fs_source(ScreenPtr screen, int stops_count, " return gradient_color;\n" "}\n"; - glamor_priv = glamor_get_screen_private(screen); - glamor_get_context(glamor_priv); - if (use_array) { XNFasprintf(&gradient_fs, gradient_fs_getcolor, stops_count, stops_count); |