Creating Chromadepth image using OpenGL