[663/906] filtershader: port to non-glew

This commit is contained in:
Matthew Waters 2013-01-31 23:51:04 +11:00
parent d255b55115
commit d07fb25841

View file

@ -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);