Add assert
This commit is contained in:
1 parent
7dfce67ef5
commit
b31ebcef99
1 file changed
+4
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user