filename | src/pvr2/glutil.c |
changeset | 1245:01e0020adf88 |
prev | 1236:d93175c36387 |
next | 1248:0ea1904e2b14 |
author | nkeynes |
date | Fri Mar 02 23:49:10 2012 +1000 (12 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 +10001.2 +++ b/src/pvr2/glutil.c Fri Mar 02 23:49:10 2012 +10001.3 @@ -41,6 +41,14 @@1.4 return isGLExtensionSupported("GL_ARB_texture_mirrored_repeat");1.5 }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 units1.17 */
.