GRAPHICS: Fix draw pass layer parser (avoid loading last layer twice). Results in noticeable speedup with gl2 renderer.