Fix depth test state
Correctly sort draw calls. Also correctly align memory for transient vertex buffer
Initialize start_index to zero
Disable vertex attrib array when necessary