Compare commits

...

3 Commits

Author SHA1 Message Date
James Seibel 7f11f9bc9c Add proof-of-concept dynamic fade 2026-01-17 10:16:38 -06:00
James Seibel 9972363846 Change render wrapper get Texture error returns 2026-01-17 09:57:25 -06:00
James Seibel 4f171234c4 Remove unneeded resource pack meta files 2026-01-17 08:20:43 -06:00
5 changed files with 7 additions and 27 deletions
@@ -362,7 +362,7 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
if (glTexture == null) if (glTexture == null)
{ {
// shouldn't happen, but just in case // shouldn't happen, but just in case
return 0; return -1;
} }
return glTexture.glId(); return glTexture.glId();
@@ -376,7 +376,7 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
this.depthTextureCastFailLogged = true; this.depthTextureCastFailLogged = true;
LOGGER.error("Unable to cast render Target depth texture to GlTexture. MC or a rendering mod may have changed the object type.", e); LOGGER.error("Unable to cast render Target depth texture to GlTexture. MC or a rendering mod may have changed the object type.", e);
} }
return 0; return -1;
} }
#endif #endif
} }
@@ -392,7 +392,7 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
if (glTexture == null) if (glTexture == null)
{ {
// shouldn't happen, but just in case // shouldn't happen, but just in case
return 0; return -1;
} }
return glTexture.glId(); return glTexture.glId();
@@ -405,7 +405,7 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
this.colorTextureCastFailLogged = true; this.colorTextureCastFailLogged = true;
LOGGER.error("Unable to cast render Target color texture to GlTexture. MC or a rendering mod may have changed the object type.", e); LOGGER.error("Unable to cast render Target color texture to GlTexture. MC or a rendering mod may have changed the object type.", e);
} }
return 0; return -1;
} }
#endif #endif
} }
-10
View File
@@ -1,10 +0,0 @@
{
"pack": {
"pack_format": 7,
"supported_formats": {
"min_inclusive": 7,
"max_inclusive": 90000
},
"description": "Distant Horizons"
}
}
@@ -45,7 +45,7 @@ public class NeoforgeMinecraftRenderWrapper extends MinecraftRenderWrapper
this.depthTextureCastFailLogged = true; this.depthTextureCastFailLogged = true;
LOGGER.error("Unable to cast render Target depth texture to GlTexture. MC or a rendering mod may have changed the object type.", e); LOGGER.error("Unable to cast render Target depth texture to GlTexture. MC or a rendering mod may have changed the object type.", e);
} }
return 0; return -1;
} }
#endif #endif
} }
@@ -72,7 +72,7 @@ public class NeoforgeMinecraftRenderWrapper extends MinecraftRenderWrapper
this.colorTextureCastFailLogged = true; this.colorTextureCastFailLogged = true;
LOGGER.error("Unable to cast render Target color texture to ValidationGpuTexture or GlTexture. MC, Neoforge, or a rendering mod may have changed the object type.", e); LOGGER.error("Unable to cast render Target color texture to ValidationGpuTexture or GlTexture. MC, Neoforge, or a rendering mod may have changed the object type.", e);
} }
return 0; return -1;
} }
#endif #endif
} }
-10
View File
@@ -1,10 +0,0 @@
{
"pack": {
"pack_format": 7,
"supported_formats": {
"min_inclusive": 7,
"max_inclusive": 90000
},
"description": "Distant Horizons"
}
}