Skip to content

Commit b6fe335

Browse files
authored
Merge daa62d8 into 1c77a8a
2 parents 1c77a8a + daa62d8 commit b6fe335

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ogre2/src/Ogre2RenderTarget.cc

+12-2
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,20 @@ uint8_t Ogre2RenderTarget::TargetFSAA() const
560560
{
561561
// output warning but only do it once
562562
static bool ogre2FSAAWarn = false;
563-
if (ogre2FSAAWarn)
563+
if (!ogre2FSAAWarn)
564564
{
565+
std::ostringstream os;
566+
os << "[ ";
567+
for (auto &&level : fsaaLevels)
568+
{
569+
os << level << " ";
570+
}
571+
os << "]";
572+
565573
ignwarn << "Anti-aliasing level of '" << this->antiAliasing << "' "
566-
<< "is not supported. Setting to 0" << std::endl;
574+
<< "is not supported; valid FSAA levels are: " << os.str()
575+
<< ". Setting to 0" << std::endl;
576+
targetFSAA = 0u;
567577
ogre2FSAAWarn = true;
568578
}
569579
}

0 commit comments

Comments
 (0)