Search
lxdream.org :: lxdream/src/drivers/video_egl.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_egl.c
changeset 1258:f8a9c0fd2abb
prev1256:a9d29fe74bf3
next1275:83b15705cdde
author nkeynes
date Mon Mar 05 11:41:03 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Small cleanups:
Refactor the post-windowing setup into gl_init_driver() in video_gl.c
Move gl_sl.c into src/drivers and tidy up a bit.
Fix OS X compiling plugins with -mdynamic-no-pic
file annotate diff log raw
1.1 --- a/src/drivers/video_egl.c Sun Mar 04 21:10:12 2012 +1000
1.2 +++ b/src/drivers/video_egl.c Mon Mar 05 11:41:03 2012 +1000
1.3 @@ -121,18 +121,12 @@
1.4 return FALSE;
1.5 }
1.6
1.7 - if( gl_fbo_is_supported() ) {
1.8 - display_egl_driver.capabilities.has_gl = TRUE;
1.9 - display_egl_driver.capabilities.depth_bits = 16; /* TODO: get from config info */
1.10 - gl_fbo_init(&display_egl_driver);
1.11 - gl_vbo_init(&display_egl_driver);
1.12 - glsl_init(&display_egl_driver);
1.13 - fbo_created = TRUE;
1.14 - } else {
1.15 - ERROR( "Display does not support FBO" );
1.16 + display_egl_driver.capabilities.depth_bits = 16; /* TODO: get from config info */
1.17 + if( !gl_init_driver(&display_egl_driver, TRUE) ) {
1.18 video_egl_clear_window();
1.19 return FALSE;
1.20 }
1.21 + fbo_created = TRUE;
1.22 gl_set_video_size(width, height, 0);
1.23 pvr2_setup_gl_context();
1.24 INFO( "Initialised EGL %d.%d\n", major, minor );
.