Disable generic rendering on Mac

This commit is contained in:
James Seibel
2026-03-15 16:29:48 -05:00
parent 55155103ec
commit eb6aa13815
2 changed files with 17 additions and 1 deletions
@@ -195,6 +195,13 @@ public class GlGenericObjectRenderer implements IDhGenericRenderer
this.vertexAttribDivisorSupported = GLProxy.getInstance().vertexAttribDivisorSupported;
this.instancedArraysSupported = GLProxy.getInstance().instancedArraysSupported;
boolean isMac = (EPlatform.get() == EPlatform.MACOS);
if (isMac)
{
LOGGER.warn("Generic rendering not supported by Mac. Clouds, beacons, and some other effects will be disabled.");
Config.Client.Advanced.Graphics.GenericRendering.enableGenericRendering.setApiValue(false);
return;
}
this.instancedRenderingAvailable = (this.vertexAttribDivisorSupported || this.instancedArraysSupported) && !isMac;
if (!this.instancedRenderingAvailable)
{
@@ -399,6 +406,14 @@ public class GlGenericObjectRenderer implements IDhGenericRenderer
@Override
public void render(RenderParams renderEventParam, IProfilerWrapper profiler, boolean renderingWithSsao)
{
// generic rendering (both instanced and direct) is extremely unstable on Mac, so don't render anything
if (EPlatform.get() == EPlatform.MACOS)
{
return;
}
// render setup //
profiler.push("setup");
@@ -511,6 +526,7 @@ public class GlGenericObjectRenderer implements IDhGenericRenderer
}
//==========//
// clean up //
//==========//