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
This commit is contained in:
reimar 2009-09-27 14:31:35 +00:00
parent fe3b9a88ce
commit f78f32c864
1 changed files with 4 additions and 0 deletions

View File

@ -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;