Don't multiply capacity by dimension
Promote texture and framebuffer management into base class
Add ol.math.roundUpToPowerOfTwo
Use ol.math.roundUpToPowerOfTwo