GLDrawable glDrawable = null;
GLContext glContext = null;
if (offScreen) {
glDrawable = drawable(cv.drawable); // cv.drawable != null, set in 'createOffScreenBuffer'
glContext = glDrawable.createContext(context(shareCtx));
}
else {
// determined in 'getBestConfiguration'
GraphicsConfigInfo gcInf0 = Canvas3D.graphicsConfigTable.get(cv.graphicsConfiguration);
AWTGraphicsConfiguration awtConfig = (AWTGraphicsConfiguration)gcInf0.getPrivateData();