Fix More Stuff

This commit is contained in:
TheBrokenRail 2020-10-17 16:37:41 -04:00
parent d098e67ee2
commit be9e9efebc
5 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
version: '3.7'
version: '3'
services:
minecraft-pi:
image: 'thebrokenrail/minecraft-pi:client'

View File

@ -1,4 +1,4 @@
version: '3.7'
version: '3'
services:
minecraft-pi:
image: 'thebrokenrail/minecraft-pi:client'

View File

@ -1,4 +1,4 @@
version: '3.7'
version: '3'
services:
minecraft-pi-server:
image: 'thebrokenrail/minecraft-pi:server'

View File

@ -466,11 +466,11 @@ HOOK(eglTerminate, EGLBoolean, (__attribute__((unused)) EGLDisplay display)) {
// Use VirGL
__attribute__((constructor)) static void init() {
int mode = extra_get_mode();
if (mode == 0) {
if (mode != 1) {
setenv("LIBGL_ALWAYS_SOFTWARE", "1", 1);
if (!is_server) {
setenv("GALLIUM_DRIVER", "virpipe", 1);
}
}
if (mode == 0) {
setenv("GALLIUM_DRIVER", "virpipe", 1);
}
is_server = mode == 2;
}

View File

@ -70,7 +70,7 @@ void _patch(const char *file, int line, void *start, unsigned char patch[]) {
mprotect((void *) page_start, end - page_start, PROT_READ | PROT_EXEC);
__builtin___clear_cache(start, (void *) end);
__clear_cache(start, end);
}
void _patch_address(const char *file, int line, void *start, void *target) {