internal CgProgramFactory() { // create the Cg context cgContext = Cg.cgCreateContext(); CgHelper.CheckCgError( "Error creating Cg context.", cgContext ); }