mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
glcontext/cocoa: implement empty swap_buffers
Fixes some GL tests on OS X.
This commit is contained in:
parent
737505f7ed
commit
6e409db6e0
1 changed files with 8 additions and 0 deletions
|
@ -34,6 +34,7 @@ static guintptr gst_gl_context_cocoa_get_gl_context (GstGLContext * window);
|
|||
static gboolean gst_gl_context_cocoa_activate (GstGLContext * context, gboolean activate);
|
||||
static GstGLAPI gst_gl_context_cocoa_get_gl_api (GstGLContext * context);
|
||||
static GstGLPlatform gst_gl_context_cocoa_get_gl_platform (GstGLContext * context);
|
||||
static void gst_gl_context_cocoa_swap_buffer (GstGLContext * context);
|
||||
|
||||
#define GST_GL_CONTEXT_COCOA_GET_PRIVATE(o) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE((o), GST_TYPE_GL_CONTEXT_COCOA, GstGLContextCocoaPrivate))
|
||||
|
@ -51,6 +52,8 @@ gst_gl_context_cocoa_class_init (GstGLContextCocoaClass * klass)
|
|||
|
||||
g_type_class_add_private (klass, sizeof (GstGLContextCocoaPrivate));
|
||||
|
||||
context_class->swap_buffers =
|
||||
GST_DEBUG_FUNCPTR (gst_gl_context_cocoa_swap_buffer);
|
||||
context_class->destroy_context =
|
||||
GST_DEBUG_FUNCPTR (gst_gl_context_cocoa_destroy_context);
|
||||
context_class->create_context =
|
||||
|
@ -284,6 +287,11 @@ error:
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gst_gl_context_cocoa_swap_buffer (GstGLContext * context)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
gst_gl_context_cocoa_destroy_context (GstGLContext *context)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue