示例#1
0
 protected void makeCurrentImpl(boolean newCreated) throws GLException {
   if (isNSContext) {
     if (!CGL.makeCurrentContext(contextHandle)) {
       throw new GLException("Error making Context (NS) current");
     }
   } else {
     if (CGL.kCGLNoError != CGL.CGLSetCurrentContext(contextHandle)) {
       throw new GLException("Error making Context (CGL) current");
     }
   }
 }