summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl2.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/vo_gl2.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/vo_gl2.c')
-rw-r--r--libvo/vo_gl2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 197f7cd1b1..dd41e6a4ab 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -125,7 +125,7 @@ static GLint getInternalFormat(void)
}
break;
#endif
-#ifdef CONFIG_X11
+#ifdef GL_X11
case GLTYPE_X11:
if (glXGetConfig(mDisplay, glctx.vinfo.x11, GLX_RED_SIZE, &r_sz) != 0) r_sz = 0;
if (glXGetConfig(mDisplay, glctx.vinfo.x11, GLX_GREEN_SIZE, &g_sz) != 0) g_sz = 0;