Add assert

This commit is contained in:
Duy Tran Khanh committed 2021-01-01 20:52:25 +07:00
1 parent 7dfce67ef5
commit b31ebcef99
1 file changed
+4 -1
+4 -1
View File
@@ -43,7 +43,10 @@ JNIEXPORT void JNICALL Java_net_kdt_pojavlaunch_utils_JREUtils_setenv(JNIEnv *en
JNIEXPORT void JNICALL Java_net_kdt_pojavlaunch_utils_JREUtils_saveGLContext(JNIEnv* env, jclass clazz) {
CURR_GL_CONTEXT = createContext();
// getCurrentContext();
if (CURR_GL_CONTEXT == NULL) {
debug("OpenGLES context is NULL...");
assert(CURR_GL_CONTEXT != NULL);
}
}
JNIEXPORT jlong JNICALL Java_org_lwjgl_glfw_GLFW_nativeEglGetCurrentContext(JNIEnv* env, jclass clazz) {