Add assertion to detect bad OpenGL buffer allocations.