glcontext/cocoa: implement empty swap_buffers
authorMatthew Waters <matthew@centricular.com>
Wed, 16 Nov 2016 02:39:32 +0000 (13:39 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 16 Nov 2016 06:34:29 +0000 (17:34 +1100)
Fixes some GL tests on OS X.

gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m

index c6bfb78..d690b21 100644 (file)
@@ -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 =
@@ -285,6 +288,11 @@ error:
 }
 
 static void
+gst_gl_context_cocoa_swap_buffer (GstGLContext * context)
+{
+}
+
+static void
 gst_gl_context_cocoa_destroy_context (GstGLContext *context)
 {
   /* FIXME: Need to release context and other things? */