public void SetPreferredIntegerBitDepth( ushort bits, bool reloadTextures )
{
_preferredIntegerBitDepth = bits;
if ( reloadTextures )
{
// Iterate throught all textures
foreach ( Texture texture in Resources )
{
// Reload loaded and reloadable texture only
if ( texture.IsLoaded && texture.IsReloadable )
{
texture.Unload();
texture.DesiredIntegerBitDepth = bits;
texture.Load();
}
else
{
texture.DesiredIntegerBitDepth = bits;
}
}
}
}