mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 12:34:11 +01:00
Un-remove getBackendDescriptor
- No point in incorrectly inlining it - One useage was replaced by InstancedRenderDispatcher#getDebugString
This commit is contained in:
parent
24423c56a8
commit
a1791399b6
@ -18,7 +18,7 @@ import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||
public class FlywheelClient {
|
||||
|
||||
public static void clientInit() {
|
||||
CrashReportCallables.registerCrashCallable("Flywheel Backend", () -> Backend.getEngine().getProperName());
|
||||
CrashReportCallables.registerCrashCallable("Flywheel Backend", Backend::getBackendDescriptor);
|
||||
|
||||
OptifineHandler.init();
|
||||
Backend.init();
|
||||
|
@ -29,6 +29,14 @@ public class Backend {
|
||||
return engine;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a string describing the Flywheel backend. When there are eventually multiple backends
|
||||
* (Meshlet, MDI, GL31 Draw Instanced are planned), this will name which one is in use.
|
||||
*/
|
||||
public static String getBackendDescriptor() {
|
||||
return engine == null ? "" : engine.getProperName();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static ProgramSpec getSpec(ResourceLocation name) {
|
||||
return loader.get(name);
|
||||
|
Loading…
Reference in New Issue
Block a user