diff options
Diffstat (limited to 'src/main/java/makamys/lodmod/renderer/Mesh.java')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/Mesh.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/Mesh.java b/src/main/java/makamys/lodmod/renderer/Mesh.java index 2367b03..600ccf1 100644 --- a/src/main/java/makamys/lodmod/renderer/Mesh.java +++ b/src/main/java/makamys/lodmod/renderer/Mesh.java @@ -25,11 +25,11 @@ public abstract class Mesh { } public int bufferSize() { - int bufferSize = quadCount * 6 * getStride(); - if(buffer != null) { - assert buffer.limit() == bufferSize; - } - return bufferSize; + return buffer.limit(); + } + + public int getEnd() { + return offset + bufferSize(); } public void prepareBuffer() {} |