Fix VBOs (I think)
This commit is contained in:
parent
5c0b2784b1
commit
6e6ac339dc
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
14835
javascript/classes.js
14835
javascript/classes.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user