[retro-gtk/wip/aplazas/gl-display] Reset the glsl filer when the filter change
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/wip/aplazas/gl-display] Reset the glsl filer when the filter change
- Date: Wed, 15 Nov 2017 15:03:57 +0000 (UTC)
commit 9f02a214d6953bb4590da86d13313031d5cc3e38
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Nov 15 15:57:02 2017 +0100
Reset the glsl filer when the filter change
retro-gtk/retro-gl-display.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/retro-gtk/retro-gl-display.c b/retro-gtk/retro-gl-display.c
index 50bc817..6f3778d 100644
--- a/retro-gtk/retro-gl-display.c
+++ b/retro-gtk/retro-gl-display.c
@@ -157,8 +157,6 @@ retro_gl_display_realize (RetroGLDisplay *self)
glGenBuffers (1, &element_buffer_object);
glBindBuffer (GL_ELEMENT_ARRAY_BUFFER, element_buffer_object);
glBufferData (GL_ELEMENT_ARRAY_BUFFER, sizeof (elements), elements, GL_STATIC_DRAW);
-
- prepare_shader_program (self);
}
static void
@@ -478,6 +476,7 @@ retro_gl_display_set_filter (RetroGLDisplay *self,
g_return_if_fail (self != NULL);
self->filter = filter;
+ g_clear_object (&self->glsl_filter);
gtk_widget_queue_draw (GTK_WIDGET (self));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]