From: Matthew Waters Date: Wed, 16 Nov 2016 02:39:32 +0000 (+1100) Subject: glcontext/cocoa: implement empty swap_buffers X-Git-Tag: 1.19.3~507^2~5871 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb84f7357b1d1915e55105a9717797d875a24c51;p=platform%2Fupstream%2Fgstreamer.git glcontext/cocoa: implement empty swap_buffers Fixes some GL tests on OS X. --- diff --git a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m index c6bfb78219..d690b21955 100644 --- a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m @@ -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) {