Search
lxdream.org :: lxdream/src/gtkui/main_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/main_win.c
changeset 606:23029426ab8f
prev561:533f6b478071
next608:4f588e52bce0
author nkeynes
date Fri Jan 25 05:52:51 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Detect if we failed to obtain a GLX visual and abort rather than crashing
file annotate diff log raw
1.1 --- a/src/gtkui/main_win.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/gtkui/main_win.c Fri Jan 25 05:52:51 2008 +0000
1.3 @@ -94,7 +94,10 @@
1.4 Display *display = gdk_x11_display_get_xdisplay( gtk_widget_get_display(win->window));
1.5 Screen *screen = gdk_x11_screen_get_xscreen( gtk_widget_get_screen(win->window));
1.6 int screen_no = XScreenNumberOfScreen(screen);
1.7 - video_glx_init(display, screen_no);
1.8 + if( !video_glx_init(display, screen_no) ) {
1.9 + ERROR( "Unable to initialize GLX, aborting" );
1.10 + exit(3);
1.11 + }
1.12
1.13 XVisualInfo *visual = video_glx_get_visual();
1.14 GdkVisual *gdkvis = gdk_x11_screen_lookup_visual( gtk_widget_get_screen(win->window), visual->visualid );
.