diff options
author | makamys <makamys@outlook.com> | 2022-06-08 00:17:58 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-08 00:17:58 +0200 |
commit | 3f0baea0952b7cb3e3eebe5d3a0bd0387c91b547 (patch) | |
tree | e299043ed00ae7e8bdb187696cd8fff6564d3eee /src/main/java | |
parent | 029743e04669bae6f0ebde630b3bdd5599254559 (diff) | |
download | Neodymium-3f0baea0952b7cb3e3eebe5d3a0bd0387c91b547.tar.gz Neodymium-3f0baea0952b7cb3e3eebe5d3a0bd0387c91b547.tar.bz2 Neodymium-3f0baea0952b7cb3e3eebe5d3a0bd0387c91b547.zip |
Fix NPE in sendMeshToGPU
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java b/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java index 2d27630..9a86d1e 100644 --- a/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java +++ b/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java @@ -97,7 +97,7 @@ public class GPUMemoryManager { } public void sendMeshToGPU(Mesh mesh) { - if(mesh == null) { + if(mesh == null || mesh.buffer == null) { return; } |