Fix NextSize infinite loop bug with input 0.
Fix initialisation of variable in GlSizeableBuffer.