# HG changeset patch # User reimar # Date 1254061895 0 # Node ID 57ed11e0d3ceb7992dd6de16a2ca72a107501946 # Parent 465247b46e39efb0291b2cae2c8d9d9429324b87 Print error instead of crashing when mesa-buffer is used on systems that do not support it. diff -r 465247b46e39 -r 57ed11e0d3ce libvo/vo_gl.c --- a/libvo/vo_gl.c Sun Sep 27 14:24:15 2009 +0000 +++ b/libvo/vo_gl.c Sun Sep 27 14:31:35 2009 +0000 @@ -571,6 +571,10 @@ 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;