Commit 2a30ccef by Jamie Madill

Remove usage of std::copy_n from the entry points.

This method is c++11 only and caused a build breakage on Mac. BUG=angle:773 Change-Id: Ib362b8d577aa85b9d6d2b8b87840ec5197240cf2 Reviewed-on: https://chromium-review.googlesource.com/241010Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 215b37a6
...@@ -3339,7 +3339,14 @@ void GL_APIENTRY GetInternalformativ(GLenum target, GLenum internalformat, GLenu ...@@ -3339,7 +3339,14 @@ void GL_APIENTRY GetInternalformativ(GLenum target, GLenum internalformat, GLenu
break; break;
case GL_SAMPLES: case GL_SAMPLES:
std::copy_n(formatCaps.sampleCounts.rbegin(), std::min<size_t>(bufSize, formatCaps.sampleCounts.size()), params); {
size_t returnCount = std::min<size_t>(bufSize, formatCaps.sampleCounts.size());
auto sampleReverseIt = formatCaps.sampleCounts.rbegin();
for (size_t sampleIndex = 0; sampleIndex < returnCount; ++sampleIndex)
{
params[sampleIndex] = *sampleReverseIt++;;
}
}
break; break;
default: default:
......
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