aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java2
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 6789406..ebfb334 100644
--- a/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java
+++ b/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java
@@ -177,7 +177,7 @@ public class GPUMemoryManager {
for(Mesh mesh : sentMeshes) {
int o = mesh.offset / 10000;
- int o2 = (mesh.offset + mesh.buffer.limit()) / 10000;
+ int o2 = (mesh.offset + mesh.bufferSize()) / 10000;
if(o / rowLength == o2 / rowLength) {
if(mesh.gpuStatus != Mesh.GPUStatus.PENDING_DELETE) {
GuiHelper.drawRectangle(o % rowLength, o / rowLength + yOff, mesh.buffer.limit() / scale + 1, 1, meshI == nextMesh ? 0x00FF00 : 0xFFFFFF);