Quick Patch for GL43+

TODO: Check why GL43+ Vertex Attribute doesn't work
This commit is contained in:
tom lee
2021-12-14 18:21:40 +08:00
parent c389f3b391
commit 97b2db84cd
@@ -92,9 +92,9 @@ public class LodRenderProgram extends ShaderProgram {
// TODO: Add better use of the LODFormat thing
int vertexByteCount = LodUtil.LOD_VERTEX_FORMAT.getByteSize();
if (GLProxy.getInstance().openGL43VertexAttributeSupported)
vao = new VertexAttributePostGL43();
else
//if (GLProxy.getInstance().openGL43VertexAttributeSupported)
// vao = new VertexAttributePostGL43();
//else
vao = new VertexAttributePreGL43();
vao.bind();
vao.setVertexAttribute(0, posAttrib, VertexAttribute.VertexPointer.addVec3Pointer(false));