From b00c41ab45b5dd3d29104ed51dc1d262c2b6d346 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 16 Mar 2000 04:15:47 +0000 Subject: [PATCH] Slight updates to material properties. --- src/Objects/materialmgr.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Objects/materialmgr.cxx b/src/Objects/materialmgr.cxx index 861d0d800..f04ad0a60 100644 --- a/src/Objects/materialmgr.cxx +++ b/src/Objects/materialmgr.cxx @@ -199,6 +199,8 @@ fgMATERIAL_MGR::load_lib ( void ) textured->enable ( GL_CULL_FACE ) ; textured->enable( GL_TEXTURE_2D ); + textured->disable( GL_BLEND ); + textured->disable( GL_ALPHA_TEST ); textured->setTexture( (char *)tex_file.c_str() ); textured->setMaterial ( GL_AMBIENT_AND_DIFFUSE, 1, 1, 1, 1 ) ; textured->setMaterial ( GL_SPECULAR, 0, 0, 0, 0 ) ; @@ -214,6 +216,8 @@ fgMATERIAL_MGR::load_lib ( void ) nontextured->enable ( GL_CULL_FACE ) ; nontextured->disable( GL_TEXTURE_2D ); + nontextured->disable( GL_BLEND ); + nontextured->disable( GL_ALPHA_TEST ); nontextured->disable( GL_COLOR_MATERIAL ); GLfloat *ambient, *diffuse, *specular, *emission; ambient = m.get_ambient(); -- 2.39.5