File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 55-----
66
77- ShaderNetworkAlgo : Fixed crash caused by cyclic connections in `removeUnusedShaders()`.
8+ - ShaderStateComponent : Fixed GL rendering failures caused by unsupported values for texture parameters.
89
91010.5.7.1 (relative to 10.5.7.0)
1011========
Original file line number Diff line number Diff line change @@ -139,7 +139,14 @@ class ShaderStateComponent::Implementation : public IECore::RefCounted
139139 it->second ->typeId () == IECore::SplinefColor3fData::staticTypeId ()
140140 )
141141 {
142- texture = IECore::runTimeCast<const Texture>( CachedConverter::defaultCachedConverter ()->convert ( it->second .get () ) );
142+ try
143+ {
144+ texture = IECore::runTimeCast<const Texture>( CachedConverter::defaultCachedConverter ()->convert ( it->second .get () ) );
145+ }
146+ catch ( const std::exception &e )
147+ {
148+ IECore::msg ( IECore::Msg::Error, " ShaderStateComponent" , e.what () );
149+ }
143150 }
144151 else if ( it->second ->typeId () == IECore::StringData::staticTypeId () )
145152 {
You can’t perform that action at this time.
0 commit comments