private int compileShaderObject(ShaderType type, String[] shaderText) throws BuildException { GL2GL3 gl = gc.getGL().getGL2GL3(); int glObject = gl.glCreateShader(type.glConst); gl.glShaderSource(glObject, shaderText.length, shaderText, null); gl.glCompileShader(glObject); handleError(glObject, shaderText); return glObject; }