Minor tweaks to work around egcs compiler pickiness.
This commit is contained in:
parent
e945d2b761
commit
fdbfd9c2f8
3 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <iostream>
|
||||
#include <ctime>
|
||||
|
||||
void main(int argc, char** argv)
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
FGFDMExec* FDMExec;
|
||||
|
||||
|
|
|
@ -187,7 +187,7 @@ fgMATERIAL_MGR::load_lib ( void )
|
|||
state->enable ( GL_CULL_FACE ) ;
|
||||
if ( current_options.get_textures() ) {
|
||||
state->enable( GL_TEXTURE_2D );
|
||||
state->setTexture( tex_file.c_str() );
|
||||
state->setTexture( (char *)tex_file.c_str() );
|
||||
state->setMaterial ( GL_AMBIENT_AND_DIFFUSE, 1, 1, 1, 1 ) ;
|
||||
} else {
|
||||
state->disable( GL_TEXTURE_2D );
|
||||
|
|
|
@ -159,7 +159,7 @@ ssgBranch *fgObjLoad( const string& path, FGTileEntry *t) {
|
|||
ssgSimpleState *state = NULL;
|
||||
|
||||
ssgBranch *tile = new ssgBranch () ;
|
||||
tile -> setName ( path.c_str() ) ;
|
||||
tile -> setName ( (char *)path.c_str() ) ;
|
||||
|
||||
// Attempt to open "path.gz" or "path"
|
||||
fg_gzifstream in( path );
|
||||
|
|
Loading…
Add table
Reference in a new issue