rework shader and add checkGLCall template