Search
lxdream.org :: lxdream/src/pvr2/glutil.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.c
changeset 1245:01e0020adf88
prev1236:d93175c36387
next1248:0ea1904e2b14
author nkeynes
date Fri Mar 02 23:49:10 2012 +1000 (8 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/pvr2/glutil.c Fri Feb 24 21:17:47 2012 +1000
1.2 +++ b/src/pvr2/glutil.c Fri Mar 02 23:49:10 2012 +1000
1.3 @@ -41,6 +41,14 @@
1.4 return isGLExtensionSupported("GL_ARB_texture_mirrored_repeat");
1.5 }
1.6
1.7 +gboolean isOpenGLES2()
1.8 +{
1.9 + const char *str = glGetString(GL_VERSION);
1.10 + if( strncmp(str, "OpenGL ES 2.", 12) == 0 ) {
1.11 + return TRUE;
1.12 + }
1.13 +}
1.14 +
1.15 /**
1.16 * Check if there's at least 2 texture units
1.17 */
.