Small graphics code cleanup

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-09-30 16:42:11 -03:00
parent 8fa511aea8
commit 050be14547
4 changed files with 34 additions and 40 deletions
+1 -2
View File
@@ -186,8 +186,7 @@ bool Canvas::loadVolatile()
// getMaxRenderbufferSamples will be 0 on systems that don't support
// multisampled renderbuffers / don't export FBO multisample extensions.
actualSamples = getRequestedMSAA();
actualSamples = std::min(actualSamples, gl.getMaxRenderbufferSamples());
actualSamples = std::min(getRequestedMSAA(), gl.getMaxRenderbufferSamples());
actualSamples = std::max(actualSamples, 0);
actualSamples = actualSamples == 1 ? 0 : actualSamples;