Started preparing for the switch to PBOs from raw pixel data.
Got image-sizes below 2560x2560 working properly, i think.
Corrected the multisampling code.