Skip to content

Commit a4295c9

Browse files
authored
Fix Ogre2RenderTarget::TargetFSAA
Fix Ogre2RenderTarget::TargetFSAA method that caused black screen when used with llvmpipe (i.e. software rendering on Linux) The Ogre2RenderTarget::TargetFSAA method has a logic to check if the selected antialiasing level is supported. If the requested antialiasing level is not supported, the 0 level is selected instead. Furthermore, a warning is printed only once for process. Before this PR, the 0 level was only set only when the warning was printed, resulting in an unsupported antialiasing being set if Ogre2RenderTarget::TargetFSAA was called two or more times. Signed-off-by: Silvio <[email protected]>
1 parent d773877 commit a4295c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ogre2/src/Ogre2RenderTarget.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,9 @@ uint8_t Ogre2RenderTarget::TargetFSAA() const
575575
ignwarn << "Anti-aliasing level of '" << this->antiAliasing << "' "
576576
<< "is not supported; valid FSAA levels are: " << os.str()
577577
<< ". Setting to 0" << std::endl;
578-
targetFSAA = 0u;
579578
ogre2FSAAWarn = true;
580579
}
580+
targetFSAA = 0u;
581581
}
582582

583583
if (targetFSAA == 0u)

0 commit comments

Comments
 (0)