Revision 25067 trunk/libraries/lib3DMap/src/org/gvsig/gvsig3d/map3d/MapContext3D.java

View differences:

MapContext3D.java
711 711
			invalidateVectorLayer(props);
712 712
		}
713 713

  
714
		// REPAINTING VIEWER
715
		// if (m_canvas3d != null) {
716
		// m_canvas3d.getOSGViewer().releaseGLContext();
717
		// m_canvas3d.getOSGViewer().configureGLContext();
718
		// m_canvas3d.repaint();
719
		// }
714
		if (m_canvas3d != null) {
715
			m_canvas3d.getOSGViewer().releaseGLContext();
716
			m_canvas3d.getOSGViewer().configureGLContext();
717
		}
720 718
	}
721 719

  
722 720
	private void invalidateVectorLayer(Layer3DProps props) {
......
1073 1071

  
1074 1072
	/** * CALLBACKS for Tiles ** */
1075 1073

  
1076
	public void tileCreated(RequestLayerEvent evt) {
1074
	/*public void tileCreated(RequestLayerEvent evt) {
1077 1075
		int textureStage = 0;
1078 1076
		int MDTStage = 0;
1079 1077

  
......
1161 1159
			if (m_canvas3d != null)
1162 1160
				m_canvas3d.repaint();
1163 1161
		}
1164
	}
1162
	}*/
1165 1163

  
1166 1164
	private void PrintDebugLayers() {
1167 1165
		System.out.println("===========================");
......
1291 1289
		// super.invalidate();
1292 1290

  
1293 1291
		m_canvas3d.repaint();
1294
		m_canvas3d.getOSGViewer().releaseGLContext();
1295
		m_canvas3d.getOSGViewer().configureGLContext();
1292
		//m_canvas3d.getOSGViewer().releaseGLContext();
1293
		//m_canvas3d.getOSGViewer().configureGLContext();
1296 1294
	}
1297 1295

  
1298 1296
	public void selectionChanged(SelectionEvent e) {

Also available in: Unified diff