Fix VBOs (I think)

This commit is contained in:
PeytonPlayz595 2024-01-26 02:56:08 +00:00
parent 5c0b2784b1
commit 6e6ac339dc
5 changed files with 22257 additions and 22254 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -23,7 +23,6 @@ public class VertexBuffer {
if (count > 0) { if (count > 0) {
VertexFormat format = parWorldRenderer.getVertexFormat(); VertexFormat format = parWorldRenderer.getVertexFormat();
buffer = parWorldRenderer.getByteBuffer(); buffer = parWorldRenderer.getByteBuffer();
buffer.clear();
buffer.limit(count * format.attribStride); buffer.limit(count * format.attribStride);
EaglercraftGPU.renderBuffer( EaglercraftGPU.renderBuffer(
@ -34,6 +33,7 @@ public class VertexBuffer {
); );
parWorldRenderer.reset(); parWorldRenderer.reset();
buffer.clear();
} }
} }
} }