[821/906] tests: fix test_share on GLESv2

This commit is contained in:
Julien Isorce 2013-10-01 11:42:21 +00:00 committed by Matthew Waters
parent 979633ed1f
commit ca9c2cce1a
2 changed files with 5 additions and 1 deletions

View file

@ -300,7 +300,9 @@ gst_gl_framebuffer_use_v2 (GstGLFramebuffer * frame, gint texture_fbo_width,
gl->Viewport (0, 0, texture_fbo_width, texture_fbo_height);
#if GST_GL_HAVE_OPENGL
gl->DrawBuffer (GL_COLOR_ATTACHMENT0);
#endif
gl->ClearColor (0.0, 0.0, 0.0, 0.0);
gl->Clear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@ -308,7 +310,9 @@ gst_gl_framebuffer_use_v2 (GstGLFramebuffer * frame, gint texture_fbo_width,
/* the opengl scene */
cb (stuff);
#if GST_GL_HAVE_OPENGL
gl->DrawBuffer (GL_NONE);
#endif
gl->Viewport (viewport_dim[0], viewport_dim[1],
viewport_dim[2], viewport_dim[3]);

View file

@ -89,7 +89,7 @@ init (gpointer data)
fail_if (tex == 0, "failed to create texture");
#if GST_GL_HAVE_GLES2
shader = gst_gl_shader_new (display);
shader = gst_gl_shader_new (context);
fail_if (shader == NULL, "failed to create shader object");
gst_gl_shader_set_vertex_source (shader, vertex_shader_str_gles2);