Commit 17cfb6c4 by Geoff Lang

Fix potential div-by-zero when CHROMIUM_framebuffer_mixed_samples is exposed.

BUG=722684 Change-Id: I1a3e88ff15580e6e14c21e6cd1da6392e82a092d Reviewed-on: https://chromium-review.googlesource.com/528212Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent ff77c359
......@@ -126,7 +126,7 @@ bool CheckAttachmentSampleCompleteness(const Context *context,
return false;
}
if ((attachment.getSamples() % samples->value()) != 0)
if ((attachment.getSamples() % std::max(samples->value(), 1)) != 0)
{
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment