javauis/m3g_qt/src/jni/graphics3d.inl
branchGCC_SURGE
changeset 55 d93ef1df440d
parent 40 c6043ea9b06a
parent 47 f40128debb5d
equal deleted inserted replaced
43:6d7ae91094e7 55:d93ef1df440d
    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  */