Fixed setPixel to wrong index in frame buffer. The index to the buffer array is integer and not float. Because of it there was bad access to the buffer and wrong pixels were set.