mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
glcontext/cocoa: implement empty swap_buffers
Fixes some GL tests on OS X.
This commit is contained in:
parent
e9b4dfa550
commit
bb84f7357b
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 gboolean gst_gl_context_cocoa_activate (GstGLContext * context, gboolean activate);
|
||||||
static GstGLAPI gst_gl_context_cocoa_get_gl_api (GstGLContext * context);
|
static GstGLAPI gst_gl_context_cocoa_get_gl_api (GstGLContext * context);
|
||||||
static GstGLPlatform gst_gl_context_cocoa_get_gl_platform (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) \
|
#define GST_GL_CONTEXT_COCOA_GET_PRIVATE(o) \
|
||||||
(G_TYPE_INSTANCE_GET_PRIVATE((o), GST_TYPE_GL_CONTEXT_COCOA, GstGLContextCocoaPrivate))
|
(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));
|
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 =
|
context_class->destroy_context =
|
||||||
GST_DEBUG_FUNCPTR (gst_gl_context_cocoa_destroy_context);
|
GST_DEBUG_FUNCPTR (gst_gl_context_cocoa_destroy_context);
|
||||||
context_class->create_context =
|
context_class->create_context =
|
||||||
|
@ -284,6 +287,11 @@ error:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_gl_context_cocoa_swap_buffer (GstGLContext * context)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_gl_context_cocoa_destroy_context (GstGLContext *context)
|
gst_gl_context_cocoa_destroy_context (GstGLContext *context)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue