1.1 --- a/src/drivers/video_x11.c Sat Sep 08 04:05:35 2007 +0000
1.2 +++ b/src/drivers/video_x11.c Fri Sep 28 07:24:14 2007 +0000
1.5 - * $Id: video_x11.c,v 1.13 2007-09-08 04:05:35 nkeynes Exp $
1.6 + * $Id: video_x11.c,v 1.14 2007-09-28 07:24:14 nkeynes Exp $
1.8 * Shared functions for all X11-based display drivers.
1.13 #include "drivers/video_x11.h"
1.14 +#include "drivers/gl_common.h"
1.16 extern uint32_t video_width, video_height;
1.19 static Display *video_x11_display = NULL;
1.20 static Screen *video_x11_screen = NULL;
1.21 static Window video_x11_window = 0;
1.22 +static gboolean glsl_loaded = FALSE;
1.28 if( gl_fbo_is_supported() ) {
1.29 gl_fbo_init(driver);
1.32 + if( glsl_is_supported() ) {
1.33 + glsl_loaded = glsl_load_shaders( glsl_vertex_shader_src, glsl_fragment_shader_src );
1.34 + if( !glsl_loaded ) {
1.35 + WARN( "Shaders failed to load" );
1.38 + WARN( "Shaders not supported" );
1.46 void video_glx_shutdown()
1.48 + if( glsl_loaded ) {
1.49 + glsl_unload_shaders();
1.51 if( glx_window != None ) {
1.52 XDestroyWindow( video_x11_display, glx_window );
1.53 XFreeColormap( video_x11_display, win_attrs.colormap );