Mercurial > mplayer.hg
diff libvo/gl_common.c @ 30021:7f09bc7a4279
Make the check for X11 and WIN32 backends for OpenGL separate.
This fixes compilation on Windows with X11 but no GLX available.
author | reimar |
---|---|
date | Sat, 19 Dec 2009 10:52:32 +0000 |
parents | 9b90e1052b32 |
children | b7a703cf9178 |
line wrap: on
line diff
--- a/libvo/gl_common.c Fri Dec 18 20:27:35 2009 +0000 +++ b/libvo/gl_common.c Sat Dec 19 10:52:32 2009 +0000 @@ -1634,7 +1634,7 @@ vo_w32_release_dc(vo_w32_window, vo_hdc); } #endif -#ifdef CONFIG_X11 +#ifdef GL_X11 #ifdef HAVE_LIBDL #include <dlfcn.h> #endif @@ -1819,7 +1819,7 @@ ctx->ontop = vo_w32_ontop; return vo_w32_init(); #endif -#ifdef CONFIG_X11 +#ifdef GL_X11 case GLTYPE_X11: ctx->setGlWindow = setGlWindow_x11; ctx->releaseGlContext = releaseGlContext_x11; @@ -1844,7 +1844,7 @@ vo_w32_uninit(); break; #endif -#ifdef CONFIG_X11 +#ifdef GL_X11 case GLTYPE_X11: vo_x11_uninit(); break;