Added double precision support in both OpenGL and OpenCL