diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-27 14:31:35 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-27 14:31:35 +0000 |
commit | f78f32c8649588b3c9ff8d6214219f0d23943e9c (patch) | |
tree | f3cf1f1ffa3e612ce23f32c0c87238e602c26aff | |
parent | fe3b9a88ce62ab0e562b326d15f398a801ba1a92 (diff) | |
download | mpv-f78f32c8649588b3c9ff8d6214219f0d23943e9c.tar.bz2 mpv-f78f32c8649588b3c9ff8d6214219f0d23943e9c.tar.xz |
Print error instead of crashing when mesa-buffer is used on systems
that do not support it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29722 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_gl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index aea5cf265c..66b43209f8 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -571,6 +571,10 @@ glconfig: uninitGl(); if (setGlWindow(&gl_vinfo, &gl_context, vo_window) == SET_WINDOW_FAILED) return -1; + if (mesa_buffer && !AllocateMemoryMESA) { + mp_msg(MSGT_VO, MSGL_ERR, "Can not enable mesa-buffer because AllocateMemoryMESA was not found\n"); + mesa_buffer = 0; + } initGl(vo_dwidth, vo_dheight); return 0; |