increment the ptr
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user