From Gunter Huber, fixes for better GLES2 support

This commit is contained in:
Robert Osfield
2010-05-13 10:01:07 +00:00
parent 42527fe859
commit 29ea65c12b
3 changed files with 17 additions and 4 deletions

View File

@@ -533,11 +533,11 @@ void StateSet::setGlobalDefaults()
setMode(GL_DEPTH_TEST,StateAttribute::ON);
setAttributeAndModes(new BlendFunc,StateAttribute::OFF);
#if defined(OSG_GL_FIXED_FUNCTION_AVAILABLE)
// setAttributeAndModes(new AlphaFunc,StateAttribute::OFF);
setAttributeAndModes(new BlendFunc,StateAttribute::OFF);
Material *material = new Material;
material->setColorMode(Material::AMBIENT_AND_DIFFUSE);