Crash on start on macOS
The mod crashes when I finished generating a new world. The logs say something about missing GL functionality, but it indicates that I'd get lower performance, not a crash. I could live with lower performance, but the crash is a bit depressing.
Relevant parts of the log:
```
[15:19:57] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
[15:19:57] [Server thread/INFO] [DistantHorizons/]: Saving LODs
[15:19:58] [Render thread/ERROR] [DistantHorizons/]: Creating GLProxy... If this is the last message you see in the log there must have been a OpenGL error.
[15:19:58] [Render thread/INFO] [DistantHorizons/]: Lod Render OpenGL version [2.1 INTEL-16.5.4].
[15:19:58] [Render thread/ERROR] [DistantHorizons/]: This GPU doesn't support Buffer Storage (OpenGL 4.5), falling back to OpenGL 3.0. This may cause stuttering and reduced performance.
[15:19:58] [Render thread/INFO] [DistantHorizons/]: GPU Vendor [INTEL INC.], Upload method set to [BUFFER_MAPPING].
[15:19:58] [Render thread/ERROR] [DistantHorizons/]: Unable to compile shaders. Error: ERROR: 0:1: '' : version '150' is not supported
ERROR: 0:1: '' : syntax error: #version
[15:19:58] [Render thread/ERROR] [DistantHorizons/]: GLProxy creation successful. OpenGL smiles upon you this day.
[15:19:58] [Render thread/INFO] [DistantHorizons/]: Saving LODs
[15:19:58] [Render thread/INFO] [DistantHorizons/]: Saving LODs
[15:19:58] [Render thread/INFO] [DistantHorizons/]: Saving LODs
FATAL ERROR in native method: Thread[LodBufferBuilderFactory - main Thread,5,main]: No context is current or a function that is not available in the current context was called. The JVM will abort execution.
at org.lwjgl.opengl.GL42C.glMemoryBarrier(Native Method)
at org.lwjgl.opengl.GL42.glMemoryBarrier(GL42.java:560)
at com.seibel.lod.core.builders.bufferBuilding.LodBufferBuilderFactory.uploadBuffers(LodBufferBuilderFactory.java:784)
at com.seibel.lod.core.builders.bufferBuilding.LodBufferBuilderFactory.generateLodBuffersThread(LodBufferBuilderFactory.java:469)
at com.seibel.lod.core.builders.bufferBuilding.LodBufferBuilderFactory.lambda$generateLodBuffersAsync$0(LodBufferBuilderFactory.java:190)
at com.seibel.lod.core.builders.bufferBuilding.LodBufferBuilderFactory$$Lambda$5932/1129919203.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
```
It might be that Distand Horizon is not possible to support on my hardware; I'd accept that, but my request is to get a better error message in that case.
It might be that this is just a stupid error since my hardware/GL stack has not been tested. If that is the case, I can help with building and testing patches.
issue