Quick Patch for GL43+
TODO: Check why GL43+ Vertex Attribute doesn't work
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user