mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +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
e4b832db90
commit
545bed3c7a
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