swapping out gl-buffer for custom code.