<div>env is system Win10 ,osg 3.6.4, osgearth 2.10.0,GTX1660 TI</div><div><br></div>Why is there an error in the model texture display when this function is turn on?<br><div><br></div><div><div> const int width( 800 ), height( 450 );</div><div>    const std::string version( "4.3" );</div><div>    osg::ref_ptr< osg::GraphicsContext::Traits > traits = new osg::GraphicsContext::Traits();</div><div>    traits->x = 20; traits->y = 30;</div><div>    traits->width = width; traits->height = height;</div><div>    traits->windowDecoration = true;</div><div>    traits->doubleBuffer = true;</div><div>    traits->glContextVersion = version;</div><div>    traits->readDISPLAY();</div><div>    traits->setUndefinedScreenDetailsToDefaultScreen();</div><div>    osg::ref_ptr< osg::GraphicsContext > gc = osg::GraphicsContext::createGraphicsContext( traits.get() );</div><div>    if( !gc.valid() )</div><div>    {</div><div>        osg::notify( osg::FATAL ) << "Unable to create OpenGL v" << version << " context." << std::endl;</div><div>        return( 1 );</div><div>    }</div></div><div><img alt="Q20201012125957.png" data-iml="224787.7050000002" width="534px" height="310px" src="cid:270d9534-8451-46b9-a37f-16d16e8d37f8"><br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/8f6c8efb-d2ee-46f3-a85c-3957fea0c828n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/8f6c8efb-d2ee-46f3-a85c-3957fea0c828n%40googlegroups.com</a>.<br />