mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Small graphics code cleanup
--HG-- branch : minor
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user