summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-06 22:23:06 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-06 22:23:06 +0000
commit6b9f08f720b23739e0ff7c9e3dbdf1f97e7867dd (patch)
treebf40d4cb0ede4c06bf4ece4a38c2f9bfa4b7b5db /libvo/gl_common.c
parent33d32ef1933c5b71618db26a1e202a902d7f80e2 (diff)
downloadmpv-6b9f08f720b23739e0ff7c9e3dbdf1f97e7867dd.tar.bz2
mpv-6b9f08f720b23739e0ff7c9e3dbdf1f97e7867dd.tar.xz
Get rid of most #ifdefs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17117 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r--libvo/gl_common.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index 0681a99a82..a885159abd 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -949,6 +949,7 @@ void glDrawTex(GLfloat x, GLfloat y, GLfloat w, GLfloat h,
}
#ifdef GL_WIN32
+#include "w32_common.h"
/**
* \brief little helper since wglGetProcAddress definition does not fit our
* getProcAddress
@@ -1023,10 +1024,15 @@ void releaseGlContext(int *vinfo, HGLRC *context) {
}
*context = 0;
}
+
+void swapGlBuffers() {
+ SwapBuffers(vo_hdc);
+}
#else
#ifdef HAVE_LIBDL
#include <dlfcn.h>
#endif
+#include "x11_common.h"
/**
* \brief find address of a linked function
* \param s name of function to find
@@ -1159,5 +1165,9 @@ void releaseGlContext(XVisualInfo **vinfo, GLXContext *context) {
}
*context = 0;
}
+
+void swapGlBuffers() {
+ glXSwapBuffers(mDisplay, vo_window);
+}
#endif