summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-03 23:45:49 +0200
committerwm4 <wm4@nowhere>2013-10-03 23:50:48 +0200
commit76f32e3881183b2fd321bd4a3e209d4144e1d323 (patch)
tree44754d615315b6188c00e0fb2f02d228f38636c7 /mpvcore
parent683e212a779341a7b376fbb6d5df54cb8205893d (diff)
downloadmpv-76f32e3881183b2fd321bd4a3e209d4144e1d323.tar.bz2
mpv-76f32e3881183b2fd321bd4a3e209d4144e1d323.tar.xz
gl_x11: fail gracefully if selected FBconfig has no X visual
glXGetVisualFromFBConfig() specifies specifies that it can return NULL if there is no associated X visual. Instead of crashing, let initialization fail. I'm not sure if this is actually supposed to work with a fallback visual (passing a NULL visual to vo_x11_config_vo_window would just do this), but let's play safe for now. Apparently this can happen when trying to use vo_opengl over a remote X display.
Diffstat (limited to 'mpvcore')
0 files changed, 0 insertions, 0 deletions