increment the ptr

This commit is contained in:
mcrcortex
2025-10-29 18:04:59 +10:00
parent a17711429c
commit b27d6323e7

View File

@@ -693,7 +693,7 @@ public class ModelFactory {
} }
//Populate the list of biomes for the model state //Populate the list of biomes for the model state
int biomeIndex = (i++) * this.biomes.size(); int biomeIndex = (i++) * this.biomes.size();
MemoryUtil.memPutLong(modelUpPtr, Integer.toUnsignedLong(entry.getLeft())|(Integer.toUnsignedLong(biomeIndex)<<32)); MemoryUtil.memPutLong(modelUpPtr, Integer.toUnsignedLong(entry.getLeft())|(Integer.toUnsignedLong(biomeIndex)<<32));modelUpPtr+=8;
long clrUploadPtr = result.biomeColourBuffer.address + biomeIndex * 4L; long clrUploadPtr = result.biomeColourBuffer.address + biomeIndex * 4L;
for (var biomeE : this.biomes) { for (var biomeE : this.biomes) {
if (biomeE == null) { if (biomeE == null) {