equal
deleted
inserted
replaced
771 // Call to the server side |
771 // Call to the server side |
772 CJavaM3GEventSource* eventSource = JavaUnhand<CJavaM3GEventSource>(aEventSourceHandle); |
772 CJavaM3GEventSource* eventSource = JavaUnhand<CJavaM3GEventSource>(aEventSourceHandle); |
773 eventSource->ExecuteV(&UpdateEglContent, cmidGraphics); |
773 eventSource->ExecuteV(&UpdateEglContent, cmidGraphics); |
774 } |
774 } |
775 |
775 |
|
776 static void freeGLESResources(M3GRenderContext aHContext) |
|
777 { |
|
778 m3gFreeGLESResources(aHContext); |
|
779 eglReleaseThread(); |
|
780 } |
|
781 |
|
782 JNIEXPORT void JNICALL Java_javax_microedition_m3g_Graphics3D__1freeGLESResources |
|
783 (JNIEnv* aEnv, jclass, jint aEventSourceHandle, jint aHCtx) |
|
784 { |
|
785 M3G_DO_LOCK |
|
786 CJavaM3GEventSource* eventSource = |
|
787 JavaUnhand<CJavaM3GEventSource>(aEventSourceHandle); |
|
788 eventSource->ExecuteV(&freeGLESResources, (M3GRenderContext)aHCtx); |
|
789 M3G_DO_UNLOCK(aEnv) |
|
790 } |
|
791 |
776 #else // !RD_JAVA_NGA_ENABLED |
792 #else // !RD_JAVA_NGA_ENABLED |
777 |
793 |
778 JNIEXPORT jint JNICALL Java_javax_microedition_m3g_Graphics3D__1getTargetHeight |
794 JNIEXPORT jint JNICALL Java_javax_microedition_m3g_Graphics3D__1getTargetHeight |
779 (JNIEnv*, jclass, jint) |
795 (JNIEnv*, jclass, jint) |
780 { |
796 { |
790 JNIEXPORT void JNICALL Java_javax_microedition_m3g_Graphics3D__1updateEglContent |
806 JNIEXPORT void JNICALL Java_javax_microedition_m3g_Graphics3D__1updateEglContent |
791 (JNIEnv*, jclass, jint, jint) |
807 (JNIEnv*, jclass, jint, jint) |
792 { |
808 { |
793 } |
809 } |
794 |
810 |
|
811 JNIEXPORT void JNICALL Java_javax_microedition_m3g_Graphics3D__1freeGLESResources |
|
812 (JNIEnv*, jclass, jint, jint) |
|
813 { |
|
814 } |
|
815 |
795 #endif // RD_JAVA_NGA_ENABLED |
816 #endif // RD_JAVA_NGA_ENABLED |