[PATCH 5/6] glamor: Fix a mismatched glamor_get/put_context().

Eric Anholt eric at anholt.net
Thu Mar 6 09:00:49 PST 2014


We don't call GL in this function any more, so we can just drop the
get.

Signed-off-by: Eric Anholt <eric at anholt.net>
---
 glamor/glamor_gradient.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/glamor/glamor_gradient.c b/glamor/glamor_gradient.c
index 9f6f1b1..6a7b528 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);
-- 
1.9.0



More information about the xorg-devel mailing list