private void compileShader() {
        glLinkProgram(resource.getProgram());

        if (glGetProgram(resource.getProgram(), GL_LINK_STATUS) == 0) {
            Util.err(fileName + ": " + glGetShaderInfoLog(resource.getProgram(), 1024));
            System.exit(1);
        }

        glValidateProgram(resource.getProgram());

        if (glGetProgram(resource.getProgram(), GL_VALIDATE_STATUS) == 0) {
            Util.err(fileName + ": " + glGetShaderInfoLog(resource.getProgram(), 1024));
            System.exit(1);
        }
    }