isGPCyclic ? GLDefs.GL_REPEAT : GLDefs.GL_CLAMP_TO_EDGE
);
gl.glTexGeni(GLDefs.GL_S, GLDefs.GL_TEXTURE_GEN_MODE, GLDefs.GL_OBJECT_LINEAR);
LockedArray la = Utils.arraccess.lockArrayShort(gradObjectPlane);
gl.glTexGendv(GLDefs.GL_S, GLDefs.GL_OBJECT_PLANE, la.getAddress());
la.release();
gl.glEnable(GLDefs.GL_TEXTURE_GEN_S);
// Load data into texture
la = Utils.arraccess.lockArrayShort(twoPixels);
gl.glTexImage1D(