minor comment changes
This commit is contained in:
@@ -234,9 +234,9 @@ public abstract class AbstractModInitializer
|
||||
CompletableFuture<Void> future = new CompletableFuture<>();
|
||||
|
||||
// This method may be called from either the render thread,
|
||||
// or some other random setup thread.
|
||||
// In order to avoid confusion we're always going to run
|
||||
// this setup on our own thread.
|
||||
// or some other random setup thread depending on the mod loader.
|
||||
// In order to avoid confusion/inconsistent problems, we're always going
|
||||
// to run setup on our own thread.
|
||||
Thread dhSetupThread = new Thread(() ->
|
||||
{
|
||||
try
|
||||
|
||||
-6
@@ -45,12 +45,6 @@ public class GlDhRenderApiDefinition extends AbstractDhRenderApiDefinition
|
||||
@Override public IDhVanillaFadeRenderer getVanillaFadeRenderer() { return GlVanillaFadeRenderer.INSTANCE; }
|
||||
@Override public IDhTestTriangleRenderer getTestTriangleRenderer() { return GlTestTriangleRenderer.INSTANCE; }
|
||||
|
||||
@Override
|
||||
public void bindRenderers()
|
||||
{
|
||||
super.bindRenderers();
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -165,12 +165,13 @@ public class GLBuffer implements AutoCloseable
|
||||
BUFFER_ID_TO_PHANTOM.remove(id);
|
||||
}
|
||||
|
||||
bufferCount.decrementAndGet();
|
||||
|
||||
// destroy the buffer if it exists,
|
||||
// the buffer may not exist if the destroy method is called twice
|
||||
if (GL32.glIsBuffer(id))
|
||||
{
|
||||
GLMC.glDeleteBuffers(id);
|
||||
bufferCount.decrementAndGet();
|
||||
|
||||
if (Config.Client.Advanced.Debugging.logBufferGarbageCollection.get())
|
||||
{
|
||||
|
||||
@@ -80,6 +80,7 @@ public class DependencySetup
|
||||
SingletonInjector.INSTANCE.bind(IConfigGui.class, ClassicConfigGUI.CONFIG_CORE_INTERFACE);
|
||||
}
|
||||
|
||||
/** will be called from a DH thread, not the render thread */
|
||||
public static void setRenderingApiBindings()
|
||||
{
|
||||
EDhApiRenderApi renderingApiEnum = Config.Client.Advanced.Graphics.Experimental.renderingApi.get();
|
||||
|
||||
Reference in New Issue
Block a user