// the property map contains only the custom shader
else if( ( map->Count() == 1u )&&( shaderValue ) )
{
- impl.mShaderMap = *( shaderValue->GetMap() );
-
- if( !impl.mUrl.empty() )
- {
- impl.SetImage( impl.mUrl, impl.mImageSize );
- }
- else if( impl.mImage )
- {
- impl.SetImage( impl.mImage );
- }
- else if( !impl.mPropertyMap.Empty() )
+ Property::Map* shaderMap = shaderValue->GetMap();
+ if( shaderMap )
{
- impl.SetImage( impl.mPropertyMap );
+ impl.mShaderMap = *shaderMap;
+
+ if( !impl.mUrl.empty() )
+ {
+ impl.SetImage( impl.mUrl, impl.mImageSize );
+ }
+ else if( impl.mImage )
+ {
+ impl.SetImage( impl.mImage );
+ }
+ else if( !impl.mPropertyMap.Empty() )
+ {
+ impl.SetImage( impl.mPropertyMap );
+ }
}
}
}