diff --git a/gst-libs/gst/gl/gstglshader.c b/gst-libs/gst/gl/gstglshader.c index de562236f8..4656afdf2d 100644 --- a/gst-libs/gst/gl/gstglshader.c +++ b/gst-libs/gst/gl/gstglshader.c @@ -212,6 +212,13 @@ gst_gl_shader_get_property (GObject * object, } +int +gst_gl_shader_get_program_handle (GstGLShader * shader) +{ + GstGLShaderPrivate *priv = shader->priv; + return (int) priv->program_handle; +} + static void gst_gl_shader_class_init (GstGLShaderClass * klass) { diff --git a/gst-libs/gst/gl/gstglshader.h b/gst-libs/gst/gl/gstglshader.h index a56b642f53..e184b6b2e2 100644 --- a/gst-libs/gst/gl/gstglshader.h +++ b/gst-libs/gst/gl/gstglshader.h @@ -67,6 +67,8 @@ GType gst_gl_shader_get_type (void); GstGLShader * gst_gl_shader_new (GstGLContext *context); +int gst_gl_shader_get_program_handle(GstGLShader * shader); + void gst_gl_shader_set_vertex_source (GstGLShader *shader, const gchar *src); void gst_gl_shader_set_fragment_source (GstGLShader *shader, const gchar *src); const gchar * gst_gl_shader_get_vertex_source (GstGLShader *shader);