mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
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
This commit is contained in:
parent
1ced9b1005
commit
aa4bdcd707
1 changed files with 2 additions and 0 deletions
|
@ -261,6 +261,8 @@ gst_gl_context_cocoa_create_context (GstGLContext *context, GstGLAPI gl_api,
|
|||
|
||||
context_cocoa->priv->gl_context = glContext;
|
||||
|
||||
[glContext setView:glView];
|
||||
|
||||
[glView setOpenGLContext:glContext];
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue