Corrected handling of OpenCL buffers. Probably. I'm really new to this stuff and it explodes left and right. :(