FGPath tex_file( current_options.get_fg_root() );
tex_file.append( "Textures" );
tex_file.append( m.get_texture_name() );
- tex_file.concat( ".rgb" );
+ // tex_file.concat( ".rgb" );
FG_LOG( FG_TERRAIN, FG_INFO, " Loading material "
<< material_name << " (" << tex_file.c_str() << ")");
ssgVertexArray *vl = new ssgVertexArray( 4 );
ssgNormalArray *nl = new ssgNormalArray( 4 );
ssgTexCoordArray *tl = new ssgTexCoordArray( 4 );
- ssgColourArray *cl = new ssgColourArray( 4 );
// sgVec3 *vtlist = new sgVec3 [ 4 ];
// t->vec3_ptrs.push_back( vtlist );
}
ssgLeaf *leaf =
- new ssgVtxTable ( GL_TRIANGLE_FAN, vl, nl, tl, cl );
+ new ssgVtxTable ( GL_TRIANGLE_FAN, vl, nl, tl, NULL );
leaf->setState( state );
ssgVertexArray *vl = new ssgVertexArray( size );
ssgNormalArray *nl = new ssgNormalArray( size );
ssgTexCoordArray *tl = new ssgTexCoordArray( size );
- ssgColourArray *cl = new ssgColourArray();
sgVec2 tmp2;
sgVec3 tmp3;
if ( token == "tf" ) {
// triangle fan
leaf =
- new ssgVtxTable ( GL_TRIANGLE_FAN, vl, nl, tl, cl );
+ new ssgVtxTable ( GL_TRIANGLE_FAN, vl, nl, tl, NULL );
} else {
// triangle strip
leaf =
- new ssgVtxTable ( GL_TRIANGLE_STRIP, vl, nl, tl, cl );
+ new ssgVtxTable ( GL_TRIANGLE_STRIP, vl, nl, tl, NULL );
}
// leaf->makeDList();
leaf->setState( state );