Buggy code:
public final class GData2 extends GData { final int colourNumber ; final float r ; final float g ; final float b ; final float a ; final float x1 ; final float y1 ; final float z1 ; final float x2 ; final float y2 ; final float z2 ; final BigDecimal X1 ; final BigDecimal Y1 ; final BigDecimal Z1 ; final BigDecimal X2 ; final BigDecimal Y2 ; final BigDecimal Z2 ; final float [ ] [ ] lGeom ; final GData1 parent ; public GData2 ( int colourNumber , float r , float g , float b , float a , BigDecimal x1 , BigDecimal y1 , BigDecimal z1 , BigDecimal x2 , BigDecimal y2 , BigDecimal z2 , GData1 parent , DatFile datFile ) { } public GData2 ( GData1 parent , int colourNumber , float r , float g , float b , float a , BigDecimal x1 , BigDecimal y1 , BigDecimal z1 , BigDecimal x2 , BigDecimal y2 , BigDecimal z2 , float x12 , float y12 , float z12 , float x22 , float y22 , float z22 , DatFile datFile ) { } public GData2 ( final int colourNumber , float r , float g , float b , float a , Vertex v1 , Vertex v2 , GData1 parent , DatFile datFile ) { } GData2 ( Vertex v1 , Vertex v2 , GData1 parent , GColour c ) { } public GData2 ( GColour c , GData1 parent , Vertex v1 , Vertex v2 ) { } public GData2 ( Vertex v1 , Vertex v2 , GColour c , GData1 parent ) { } @ Override public void draw ( Composite3D c3d ) { } @ Override public void drawRandomColours ( Composite3D c3d ) { } @ Override public void drawBFC ( Composite3D c3d ) { } @ Override public void drawBFCuncertified ( Composite3D c3d ) { } @ Override public void drawBFC_backOnly ( Composite3D c3d ) { } @ Override public void drawBFC_Colour ( Composite3D c3d ) { } @ Override public void drawWhileAddCondlines ( Composite3D c3d ) { } @ Override public void drawBFC_Textured ( Composite3D c3d ) { if ( GData . globalDrawObjects ) { final OpenGLRenderer r = c3d . getRenderer ( ) ; GL20 . glUniform1f ( r . getNormalSwitchLoc ( ) , ( ( GData . globalNegativeDeterminant ) ^ ( GData . globalInvertNext ) ? 1.0F : 0.0F ) ) ; GL20 . glUniform1f ( r . getNoTextureSwitch ( ) , 1.0F ) ; GL20 . glUniform1f ( r . getNoLightSwitch ( ) , 1.0F ) ; <START_BUG> GL20 . glUniform1f ( r . getCubeMapSwitch ( ) , 1.0F ) ; <END_BUG> if ( ! ( visible ) ) return ; if ( ! ( c3d . isDrawingSolidMaterials ( ) ) ) return ; switch ( c3d . getLineMode ( ) ) { case 3 : case 4 : return ; default : break ; } float r2 ; float g2 ; float b2 ; int cn ; if ( ( ( colourNumber ) == 24 ) && ( ( cn = ( ( ( ( ( parent . r ) == 0.5F ) && ( ( parent . g ) == 0.5F ) ) && ( ( parent . b ) == 0.5F ) ) && ( ( ( parent . a ) == 1.1F ) || ( ( parent . a ) == ( - 1 ) ) ) ) ? 16 : View . getLDConfigIndex ( parent . r , parent . g , parent . b ) ) != 16 ) ) { GColour c = View . getLDConfigEdgeColour ( cn , c3d ) ; r2 = c . getR ( ) ; g2 = c . getG ( ) ; b2 = c . getB ( ) ; } else { r2 = this . r ; g2 = this . g ; b2 = this . b ; } GL11 . glLineWidth ( View . lineWidthGL [ 0 ] ) ; GL11 . glColor4f ( r2 , g2 , b2 , 1.0F ) ; GL11 . glBegin ( GL_LINES ) ; c3d . getVertexManager ( ) . setVertex ( x1 , y1 , z1 , this , true ) ; c3d . getVertexManager ( ) . setVertex ( x2 , y2 , z2 , this , true ) ; GL11 . glEnd ( ) ; } if ( GData . globalFoundTEXMAPNEXT ) { globalFoundTEXMAPStack . pop ( ) ; globalTextureStack . pop ( ) ; globalFoundTEXMAPStack . push ( false ) ; GData . globalFoundTEXMAPNEXT = false ; } } @ Override public int type ( ) { } @ Override String getNiceString ( ) { } @ Override public String inlinedString ( byte bfc , GColour colour ) { } @ Override public String transformAndColourReplace ( String colour , Matrix matrix ) { } @ Override public void getBFCorientationMap ( HashMap < GData , Byte > map ) { } @ Override public void getBFCorientationMapNOCERTIFY ( HashMap < GData , Byte > map ) { } @ Override public void getBFCorientationMapNOCLIP ( HashMap < GData , Byte > map ) { } @ Override public void getVertexNormalMap ( TreeMap < Vertex , float [ ] > vertexLinkedToNormalCACHE , HashMap < GData , float [ ] > dataLinkedToNormalCACHE , VertexManager vm ) { } @ Override public void getVertexNormalMapNOCERTIFY ( TreeMap < Vertex , float [ ] > vertexLinkedToNormalCACHE , HashMap < GData , float [ ] > dataLinkedToNormalCACHE , VertexManager vm ) { } @ Override public void getVertexNormalMapNOCLIP ( TreeMap < Vertex , float [ ] > vertexLinkedToNormalCACHE , HashMap < GData , float [ ] > dataLinkedToNormalCACHE , VertexManager vm ) { } public String colourReplace ( String col ) { } }

Fix:
GL20 . glUniform1f ( r . getCubeMapSwitch ( ) , 0.0F ) ;