equal
deleted
inserted
replaced
20 * Must be executed in UI thread |
20 * Must be executed in UI thread |
21 */ |
21 */ |
22 JNIEXPORT jboolean JNICALL Java_javax_microedition_m3g_Graphics3D__1isProperRenderer |
22 JNIEXPORT jboolean JNICALL Java_javax_microedition_m3g_Graphics3D__1isProperRenderer |
23 (JNIEnv* /*aEnv*/, jclass) |
23 (JNIEnv* /*aEnv*/, jclass) |
24 { |
24 { |
25 EGLContext ctx; |
25 /* EGLContext ctx; |
26 EGLConfig config; |
26 EGLConfig config; |
27 EGLSurface surf; |
27 EGLSurface surf; |
28 EGLint attrib[5]; |
28 EGLint attrib[5]; |
29 EGLint numConfigs; |
29 EGLint numConfigs; |
30 bool isProperRenderer; |
30 bool isProperRenderer; |
76 // destroy the temporary surface & context |
76 // destroy the temporary surface & context |
77 eglMakeCurrent(eglGetDisplay(0), NULL, NULL, NULL); |
77 eglMakeCurrent(eglGetDisplay(0), NULL, NULL, NULL); |
78 eglDestroySurface(eglGetDisplay(0), surf); |
78 eglDestroySurface(eglGetDisplay(0), surf); |
79 eglDestroyContext(eglGetDisplay(0), ctx); |
79 eglDestroyContext(eglGetDisplay(0), ctx); |
80 |
80 |
81 return isProperRenderer; |
81 return isProperRenderer;*/ |
|
82 return false; |
82 } |
83 } |
83 |
84 |
84 /* |
85 /* |
85 * Must be executed in UI thread |
86 * Must be executed in UI thread |
86 */ |
87 */ |