summaryrefslogtreecommitdiff
path: root/glamor/glamor_gradient.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-06-19 17:05:28 -0700
committerEric Anholt <eric@anholt.net>2015-06-29 21:43:35 -0700
commitc5e6fffbdd88ad714454b9de1ac1c3eb9f6bf196 (patch)
tree494cbe2ea502cbed32741a69389d27d7da56756b /glamor/glamor_gradient.c
parent3d6dcad00d67bff407385ad37c7efde7b73ba719 (diff)
glamor: Drop CloseScreen-time GL resource cleanup code.
These will all be freed when the context is freed. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'glamor/glamor_gradient.c')
-rw-r--r--glamor/glamor_gradient.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/glamor/glamor_gradient.c b/glamor/glamor_gradient.c
index d34131d35..30c29f610 100644
--- a/glamor/glamor_gradient.c
+++ b/glamor/glamor_gradient.c
@@ -582,27 +582,6 @@ glamor_init_gradient_shader(ScreenPtr screen)
_glamor_create_radial_gradient_program(screen, RADIAL_LARGE_STOPS, 0);
}
-void
-glamor_fini_gradient_shader(ScreenPtr screen)
-{
- glamor_screen_private *glamor_priv;
- int i = 0;
-
- glamor_priv = glamor_get_screen_private(screen);
- glamor_make_current(glamor_priv);
-
- for (i = 0; i < 3; i++) {
- /* Linear Gradient */
- if (glamor_priv->gradient_prog[SHADER_GRADIENT_LINEAR][i])
- glDeleteProgram(glamor_priv->gradient_prog
- [SHADER_GRADIENT_LINEAR][i]);
-
- if (glamor_priv->gradient_prog[SHADER_GRADIENT_RADIAL][i])
- glDeleteProgram(glamor_priv->gradient_prog
- [SHADER_GRADIENT_RADIAL][i]);
- }
-}
-
static void
_glamor_gradient_convert_trans_matrix(PictTransform *from, float to[3][3],
int width, int height, int normalize)