Search
lxdream.org :: lxdream/src/drivers/gl_fbo.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/gl_fbo.c
changeset 1245:01e0020adf88
prev1228:8168aa94e6d7
next1251:b8ab59d39756
author nkeynes
date Fri Mar 02 23:49:10 2012 +1000 (9 years ago)
permissions -rw-r--r--
last change Android WIP:
* Rename gui_jni.c to gui_android.c - now quite android specific.
* Implement generic EGL driver with very minimal Java wrapper
* Run emulation in separate thread, and implement simple queue for
inter-thread communication.
* Add menu/action-bar items for start + reset
file annotate diff log raw
1.1 --- a/src/drivers/gl_fbo.c Thu Feb 23 15:24:47 2012 +1000
1.2 +++ b/src/drivers/gl_fbo.c Fri Mar 02 23:49:10 2012 +1000
1.3 @@ -67,7 +67,7 @@
1.4
1.5 gboolean gl_fbo_is_supported()
1.6 {
1.7 - return isGLExtensionSupported("GL_EXT_framebuffer_object");
1.8 + return isGLExtensionSupported("GL_EXT_framebuffer_object") || isOpenGLES2();
1.9 }
1.10
1.11 /**
1.12 @@ -353,7 +353,8 @@
1.13 glDrawBuffer( GL_FRONT );
1.14 glReadBuffer( GL_FRONT );
1.15 #endif
1.16 - display_driver->swap_buffers();
1.17 + if( display_driver->swap_buffers )
1.18 + display_driver->swap_buffers();
1.19 }
1.20
1.21 static gboolean gl_fbo_read_render_buffer( unsigned char *target, render_buffer_t buffer,
.