private static void copyLightState(final LightState source, final LightState destination) { destination.setTwoSidedLighting(source.getTwoSidedLighting()); destination.setLocalViewer(source.getLocalViewer()); destination.setSeparateSpecular(source.getSeparateSpecular()); destination.setEnabled(source.isEnabled()); destination.setGlobalAmbient(source.getGlobalAmbient()); destination.setLightMask(source.getLightMask()); destination.setNeedsRefresh(true); for (int i = 0, maxL = source.getLightList().size(); i < maxL; i++) { final Light pkLight = source.get(i); if (pkLight != null) { destination.attach(pkLight); } } }
setTwoSided(state.getTwoSidedLighting(), record); setLocalViewer(state.getLocalViewer(), record); if (context.getCapabilities().isOpenGL1_2Supported()) {
setTwoSided(state.getTwoSidedLighting(), record); setLocalViewer(state.getLocalViewer(), record); if (caps.isOpenGL1_2Supported()) {