gl: qglwtextureshare demo fixes and cleanup
authorWang Xin-yu (王昕宇) <comicfans44@gmail.com>
Tue, 26 Aug 2014 08:21:42 +0000 (16:21 +0800)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:46 +0000 (19:31 +0000)
commita8093c56d5f59a778277ad6570a63359a40a4c77
tree95fe4abb0c77f8f4739c2f7e91e66950e6bcb4b0
parent62bebdb4e66697d87fd0045a71892f3d96742a26
gl: qglwtextureshare demo fixes and cleanup

1. glcontextid function is replaced by gstreamer gst_gl_context_new_wrapped .
2. call gst_init before gst_gl_display_new , seems gst_gl_display_new depends
   on gst_allocator_register , which only worked after gst_init called
3. flush gstreamer OpenGL context before using shared texture, fix
   flicker problem.

https://bugzilla.gnome.org/show_bug.cgi?id=735566
tests/examples/gl/qt/qglwtextureshare/glcontextid.h [deleted file]
tests/examples/gl/qt/qglwtextureshare/gstthread.h
tests/examples/gl/qt/qglwtextureshare/main.cpp
tests/examples/gl/qt/qglwtextureshare/pipeline.cpp
tests/examples/gl/qt/qglwtextureshare/pipeline.h
tests/examples/gl/qt/qglwtextureshare/qglrenderer.cpp
tests/examples/gl/qt/qglwtextureshare/qglwtextureshare.pro