Search
lxdream.org :: lxdream/src/drivers/video_nsgl.m :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_nsgl.m
changeset 1258:f8a9c0fd2abb
prev1256:a9d29fe74bf3
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_nsgl.m Sun Mar 04 21:10:12 2012 +1000
1.2 +++ b/src/drivers/video_nsgl.m Mon Mar 05 11:41:03 2012 +1000
1.3 @@ -43,19 +43,7 @@
1.4 driver->swap_buffers = video_nsgl_swap_buffers;
1.5 driver->capabilities.has_gl = TRUE;
1.6 driver->capabilities.depth_bits = 24;
1.7 - if( gl_fbo_is_supported() ) {
1.8 - gl_fbo_init(driver);
1.9 - } else {
1.10 - /* Note there is a 'native' buffer framework, but since all current
1.11 - * Apple drivers appear to support FBO, there's not much point in
1.12 - * doing the work to support them.
1.13 - */
1.14 - ERROR( "FBO not supported" );
1.15 - return FALSE;
1.16 - }
1.17 - gl_vbo_init(driver);
1.18 - glsl_init(driver);
1.19 -
1.20 + gl_init_driver(driver, TRUE);
1.21 return TRUE;
1.22 }
1.23
.