begin rework of drawablebase and fixing swapbuffers bug.