From: Matthias H. <ma...@ms...> - 2008-08-08 15:20:54
|
# HG changeset patch # User Matthias Hopf <ma...@ms...> # Date 1218208824 -7200 # Node ID 96eaf3a2cb5b9361d00aa02c51bd740c515a5f25 # Parent 36a830cc4210cc5a8452d4a917e48642313be259 video_out_opengl: Actually bail out if no display found. diff -r 96eaf3a2cb5b9361d00aa02c51bd740c515a5f25 -r 36a830cc4210cc5a8452d4a917e48642313be259 src/video_out/video_out_opengl.c --- a/src/video_out/video_out_opengl.c Fri Aug 08 17:20:24 2008 +0200 +++ b/src/video_out/video_out_opengl.c Fri Aug 08 15:39:37 2008 +0200 @@ -1970,6 +1970,7 @@ static int opengl_verify_direct (x11_vis if (!vis || !vis->display || ! (root = RootWindow (vis->display, vis->screen))) { fprintf (stderr, "[videoout_opengl]: Don't have a root window to verify\n"); + return 0; } if (! (visinfo = glXChooseVisual (vis->display, vis->screen, attribs))) return 0; |