Mercurial > mplayer.hg
diff libvo/gl_common.c @ 17116:724353364790
Get rid of most #ifdefs
author | reimar |
---|---|
date | Tue, 06 Dec 2005 22:23:06 +0000 |
parents | fd178c06dc84 |
children | a27e52b838e3 |
line wrap: on
line diff
--- a/libvo/gl_common.c Tue Dec 06 22:15:03 2005 +0000 +++ b/libvo/gl_common.c Tue Dec 06 22:23:06 2005 +0000 @@ -949,6 +949,7 @@ } #ifdef GL_WIN32 +#include "w32_common.h" /** * \brief little helper since wglGetProcAddress definition does not fit our * getProcAddress @@ -1023,10 +1024,15 @@ } *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 @@ } *context = 0; } + +void swapGlBuffers() { + glXSwapBuffers(mDisplay, vo_window); +} #endif