summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapiutils_glx.c
diff options
context:
space:
mode:
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>2010-03-29 13:40:27 +0000
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>2010-03-29 13:40:27 +0000
commit1165419fd064d289607234d43a7958eed08a5af1 (patch)
tree953387c3ade1e019d5b8cb30774b254f1002548d /gst-libs/gst/vaapi/gstvaapiutils_glx.c
parentee230e6a1d86725774abddcd341e0cc622d1a1ae (diff)
Add glXSwapBuffers() workaround for NVIDIA.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapiutils_glx.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiutils_glx.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiutils_glx.c b/gst-libs/gst/vaapi/gstvaapiutils_glx.c
index de6ea3f6..b7ba744d 100644
--- a/gst-libs/gst/vaapi/gstvaapiutils_glx.c
+++ b/gst-libs/gst/vaapi/gstvaapiutils_glx.c
@@ -212,6 +212,21 @@ gl_make_current(Display *dpy, Window win, GLXContext ctx, GLContextState *state)
}
/**
+ * gl_swap_buffers:
+ * @dpy: an X11 #Display
+ * @win: an X11 #Window
+ *
+ * Promotes the contents of the back buffer of the @win window to
+ * become the contents of the front buffer. This simply is wrapper
+ * around glXSwapBuffers().
+ */
+void
+gl_swap_buffers(Display *dpy, Window win)
+{
+ glXSwapBuffers(dpy, win);
+}
+
+/**
* gl_bind_texture:
* @ts: a #GLTextureState
* @target: the target to which the texture is bound