mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 09:34:35 -05:00
Attempt to fix texture warping of bedrock outside map at certain angles with 4096 render distance (thanks tornato)
Done by breaking down into 2048x2048 instead of 65536x65536 quads at most
This commit is contained in:
parent
4fa3dd2173
commit
5d64fbb6ac
2 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,7 @@ static float EnvRenderer_BlendFactor(float x) {
|
|||
return (float)blend;
|
||||
}
|
||||
|
||||
#define EnvRenderer_AxisSize() (EnvRenderer_Legacy ? 128 : 65536)
|
||||
#define EnvRenderer_AxisSize() (EnvRenderer_Legacy ? 128 : 2048)
|
||||
/* Returns the number of vertices needed to subdivide a quad */
|
||||
static int EnvRenderer_Vertices(int axis1Len, int axis2Len) {
|
||||
int axisSize = EnvRenderer_AxisSize();
|
||||
|
|
|
@ -2047,6 +2047,7 @@ static void Window_ConnectEvents(void) {
|
|||
/* However, we cannot use that since the event loop is managed by us instead. */
|
||||
/* Unfortunately, there is no proper API to duplicate that behaviour, so reply */
|
||||
/* on the undocumented GetMenuBarEventTarget to achieve similar behaviour. */
|
||||
/* TODO: Use DynamicLib API instead of dlsym */
|
||||
getMenuBarEventTarget = dlsym(RTLD_DEFAULT, "GetMenuBarEventTarget");
|
||||
InstallStandardEventHandler(GetApplicationEventTarget());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue