Attempt fix capture index buffer before it gets large
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package me.cortex.voxy.client;
|
||||
|
||||
import me.cortex.voxy.client.core.gl.Capabilities;
|
||||
import me.cortex.voxy.client.core.model.bakery.BudgetBufferRenderer;
|
||||
import me.cortex.voxy.common.Logger;
|
||||
import me.cortex.voxy.commonImpl.VoxyCommon;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
@@ -17,6 +18,7 @@ public class VoxyClient implements ClientModInitializer {
|
||||
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
BudgetBufferRenderer.init();
|
||||
ClientLifecycleEvents.CLIENT_STARTED.register(client->{
|
||||
boolean systemSupported = Capabilities.INSTANCE.compute && Capabilities.INSTANCE.indirectParameters;
|
||||
if (systemSupported) {
|
||||
|
||||
@@ -26,6 +26,7 @@ public class BudgetBufferRenderer {
|
||||
.compile();
|
||||
|
||||
|
||||
public static void init(){}
|
||||
private static final GlBuffer indexBuffer;
|
||||
static {
|
||||
var i = RenderSystem.getSequentialBuffer(VertexFormat.DrawMode.QUADS);
|
||||
|
||||
Reference in New Issue
Block a user