gl/cocoa: set the view to use for drawing by the context
authorJulien Isorce <julien.isorce@gmail.com>
Thu, 24 Apr 2014 07:49:54 +0000 (08:49 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:37 +0000 (19:31 +0000)
commit545bed3c7a54101e4f24eeed19f9754b94185baf
tree2783784744332c5556cefb8e09fbd55e52fd3b81
parente4b832db90679431101e9fb5c6a7d8f5ddcaa266
gl/cocoa: set the view to use for drawing by the context

It avoids to draw to an invalid buffer.
Withtout this the default frame buffer is undefined:
glBindFramebuffer (GL_FRAMEBUFFER, 0)

Visually you could see some white frames at the beginning
when lunching videotestsrc ! glimagesink

With OpenGL Profiler from XCode you could see some
GL_INVALID_FRAMEBUFFER_OPERATION for the first frames
gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m