mirror of https://github.com/mpv-player/mpv
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:
parent
fe3b9a88ce
commit
f78f32c864
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue