protected void postsetup(Slot ps, Buffer t) { gstates = getgstates(); Slot pp = curp; try { curp = ps; for (GLState.Global gs : gstates) { t.copy(ps.cs); gs.postsetup(this); } } finally { curp = pp; } }