summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-19 10:52:32 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-19 10:52:32 +0000
commit140de2a9e2a7a057ff58254eb3d0eafe0754ae24 (patch)
tree01d9133bbabc853a716fcf1a26c7c81d5b5b98cd /libvo/gl_common.c
parentcb7a098c81c2cd2191faa452d9f025da7a22e1bc (diff)
downloadmpv-140de2a9e2a7a057ff58254eb3d0eafe0754ae24.tar.bz2
mpv-140de2a9e2a7a057ff58254eb3d0eafe0754ae24.tar.xz
Make the check for X11 and WIN32 backends for OpenGL separate.
This fixes compilation on Windows with X11 but no GLX available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30063 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r--libvo/gl_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index efd569dc5c..c35a531bd3 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -1634,7 +1634,7 @@ static void swapGlBuffers_w32(MPGLContext *ctx) {
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 @@ int init_mpglcontext(MPGLContext *ctx, enum MPGLType type) {
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 @@ void uninit_mpglcontext(MPGLContext *ctx) {
vo_w32_uninit();
break;
#endif
-#ifdef CONFIG_X11
+#ifdef GL_X11
case GLTYPE_X11:
vo_x11_uninit();
break;