mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-22 07:53:30 +00:00
hopefully fixed blackscreen 🙏
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "Minecraft.h"
|
||||
#include "client/Options.h"
|
||||
#include "client/player/input/IBuildInput.h"
|
||||
#include "platform/input/Keyboard.h"
|
||||
#include "world/item/Item.h"
|
||||
@@ -1139,7 +1140,7 @@ void Minecraft::init()
|
||||
checkGlError("Init complete");
|
||||
#endif
|
||||
|
||||
user = new User("TestUser", "");
|
||||
user = new User(options.getStringValue(OPTIONS_USERNAME), "");
|
||||
setIsCreativeMode(false); // false means it's Survival Mode
|
||||
reloadOptions();
|
||||
|
||||
|
||||
@@ -21,6 +21,12 @@
|
||||
#include <GLES/glext.h>
|
||||
#else
|
||||
#include <glad/glad.h>
|
||||
|
||||
// https://github.com/programmer1o1/MinecraftPE-v0.6.1/blob/main/handheld/src/client/renderer/gles.h#L135-L138
|
||||
#define glFogx(a,b) glFogi(a,b)
|
||||
#define glOrthof(a,b,c,d,e,f) glOrtho(a,b,c,d,e,f)
|
||||
#define glClearDepthf(x) glClearDepth(x)
|
||||
#define glDepthRangef(a,b) glDepthRange(a,b)
|
||||
#endif
|
||||
#else
|
||||
// Uglyness to fix redeclaration issues
|
||||
|
||||
Reference in New Issue
Block a user