diff options
author | makamys <makamys@outlook.com> | 2022-06-26 16:13:23 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-26 16:14:21 +0200 |
commit | 7edb8662a2b64b7d05e69a15531107893023022f (patch) | |
tree | 7c21fe12f3045158e830baad8d56f306e7830ae8 /src/main/java/makamys/neodymium/renderer/NeoRenderer.java | |
parent | 8bbad99b0344118472f085133e73c1f5b203c1bc (diff) | |
download | Neodymium-7edb8662a2b64b7d05e69a15531107893023022f.tar.gz Neodymium-7edb8662a2b64b7d05e69a15531107893023022f.tar.bz2 Neodymium-7edb8662a2b64b7d05e69a15531107893023022f.zip |
Fix NPE when travelling between Nether and Overworld
Diffstat (limited to 'src/main/java/makamys/neodymium/renderer/NeoRenderer.java')
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/NeoRenderer.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java index 802a715..9a1230c 100644 --- a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java +++ b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java @@ -438,6 +438,8 @@ public class NeoRenderer { } public void destroy() { + if(!hasInited) return; + glDeleteProgram(shaderPrograms[0]); glDeleteProgram(shaderPrograms[1]); glDeleteVertexArrays(VAO); |