filename | src/drivers/video_glx.c |
changeset | 635:76c63aac3590 |
prev | 606:23029426ab8f |
next | 639:162ee7614b60 |
author | nkeynes |
date | Thu Feb 14 13:54:11 2008 +0000 (15 years ago) |
branch | lxdream-render |
permissions | -rw-r--r-- |
last change | Commit render work in progress. Main changes: * Preliminary OSMesa support * Move the generic gl code out to pvr2/ * Implement scene data structure + reader * Remove the 1/z adjustments |
file | annotate | diff | log | raw |
1.1 --- a/src/drivers/video_glx.c Fri Jan 25 05:52:51 2008 +00001.2 +++ b/src/drivers/video_glx.c Thu Feb 14 13:54:11 2008 +00001.3 @@ -16,12 +16,14 @@1.4 * GNU General Public License for more details.1.5 */1.7 +#include <string.h>1.8 #include "display.h"1.9 -#include "pvr2/pvr2.h"1.10 -#include "drivers/gl_common.h"1.11 #include <X11/Xlib.h>1.12 #include <GL/glx.h>1.13 +#include "pvr2/pvr2.h"1.14 +#include "pvr2/glutil.h"1.15 #include "drivers/video_glx.h"1.16 +#include "drivers/video_gl.h"1.18 /**1.19 * General X11 parameters. The front-end driver is expected to set this up1.20 @@ -168,6 +170,13 @@1.21 WARN( "Not using direct rendering - this is likely to be slow" );1.22 }1.24 + if( glsl_is_supported() ) {1.25 + //if( !glsl_load_shaders( glsl_vertex_shader_src, glsl_fragment_shader_src ) ) {1.26 + if( !glsl_load_shaders( glsl_vertex_shader_src, NULL ) ) {1.27 + WARN( "Unable to load GL shaders" );1.28 + }1.29 + }1.30 +1.31 texcache_gl_init();1.32 video_x11_display = display;1.33 video_x11_window = window;
.