From 6b9f08f720b23739e0ff7c9e3dbdf1f97e7867dd Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 6 Dec 2005 22:23:06 +0000 Subject: Get rid of most #ifdefs git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17117 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/gl_common.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libvo/gl_common.c') 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 #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 -- cgit v1.2.3