Updated gl4es: probably fixes 1.17 empty terrain

This commit is contained in:
Duy Tran Khanh committed 2021-06-30 06:48:00 +07:00
1 parent 70d099af67
commit a742e5b14f
2 files changed
+5 -3

No files matched your search

+2
View File
@@ -48,6 +48,8 @@ typedef jint JLI_Launch_func(int argc, char ** argv, /* main argc, argc */
static int margc = 0;
static char* margv[1000];
static int pfd[2];
static pthread_t logger;
void init_loadCustomEnv() {
FILE *envFile = fopen("/var/mobile/Documents/.pojavlauncher/custom_env.txt", "r");
+3 -3
View File
@@ -268,7 +268,7 @@ BOOL isNotifRemoved;
// [self setNeedsDisplay]
// NSLog(@"swapbuffer");
// Remove notifications, so rendering will be manually controlled!
// Hack: Remove notifications, so rendering will be manually controlled!
if (isNotifRemoved == NO) {
isNotifRemoved = YES;
[[NSNotificationCenter defaultCenter] removeObserver:self
@@ -325,7 +325,7 @@ BOOL isNotifRemoved;
break;
}
} else if (@available(iOS 13.4, *)) {
// Recheck @available for fix compile warnings
// Recheck @available for suppressing compile warnings
// Mouse clicks are handled here
int held = event == ACTION_MOVE || event == ACTION_UP;
@@ -439,7 +439,7 @@ BOOL isNotifRemoved;
velocity.y = 1.0f;
}
if (velocity.x != 0.0f || velocity.y != 0.0f) {
Java_org_lwjgl_glfw_CallbackBridge_nativeSendScroll(NULL, NULL, (jdouble) velocity.x, (jdouble) velocity.y);
Java_org_lwjgl_glfw_CallbackBridge_nativeSendScroll(NULL, NULL, (jdouble) velocity.x * 4.0, (jdouble) velocity.y * 4.0);
}
}
}