mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
[663/906] filtershader: port to non-glew
This commit is contained in:
parent
d255b55115
commit
d07fb25841
1 changed files with 7 additions and 7 deletions
|
@ -340,17 +340,17 @@ gst_gl_filtershader_hcallback (gint width, gint height, guint texture,
|
||||||
{
|
{
|
||||||
GstGLFilter *filter = GST_GL_FILTER (stuff);
|
GstGLFilter *filter = GST_GL_FILTER (stuff);
|
||||||
GstGLFilterShader *filtershader = GST_GL_FILTERSHADER (filter);
|
GstGLFilterShader *filtershader = GST_GL_FILTERSHADER (filter);
|
||||||
|
GstGLFuncs *gl = filter->display->gl_vtable;
|
||||||
|
|
||||||
glMatrixMode (GL_PROJECTION);
|
gl->MatrixMode (GL_PROJECTION);
|
||||||
glLoadIdentity ();
|
gl->LoadIdentity ();
|
||||||
|
|
||||||
gst_gl_shader_use (filtershader->shader0);
|
gst_gl_shader_use (filtershader->shader0);
|
||||||
|
|
||||||
|
gl->ActiveTexture (GL_TEXTURE1);
|
||||||
glActiveTexture (GL_TEXTURE1);
|
gl->Enable (GL_TEXTURE_RECTANGLE_ARB);
|
||||||
glEnable (GL_TEXTURE_RECTANGLE_ARB);
|
gl->BindTexture (GL_TEXTURE_RECTANGLE_ARB, texture);
|
||||||
glBindTexture (GL_TEXTURE_RECTANGLE_ARB, texture);
|
gl->Disable (GL_TEXTURE_RECTANGLE_ARB);
|
||||||
glDisable (GL_TEXTURE_RECTANGLE_ARB);
|
|
||||||
|
|
||||||
gst_gl_shader_set_uniform_1i (filtershader->shader0, "tex", 1);
|
gst_gl_shader_set_uniform_1i (filtershader->shader0, "tex", 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue